~jaap.karssenberg/zim/pyzim-0.43-backports

« back to all changes in this revision

Viewing changes to zim/index.py

  • Committer: Jaap Karssenberg
  • Date: 2010-01-13 22:34:54 UTC
  • Revision ID: pardus@cpan.org-20100113223454-0u1cefs3erbh57gg
* Fix that removes duplicate entries with '_' in index
* Fix for umask

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        This allows syntax like:
165
165
 
166
166
                with index.db_commit:
167
 
                        cursor = index.db.get_cursor()
 
167
                        cursor = index.db.cursor()
168
168
                        cursor.execute(...)
169
169
 
170
170
        instead off:
171
171
 
172
172
                try:
173
 
                        cursor = index.db.get_cursor()
 
173
                        cursor = index.db.cursor()
174
174
                        cursor.execute(...)
175
175
                except:
176
176
                        index.db.rollback()