~barry/ubuntu/raring/python-whoosh/hg1423

« back to all changes in this revision

Viewing changes to src/whoosh/support/filelock.py

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2012-07-26 13:45:44 UTC
  • mfrom: (1.2.19)
  • Revision ID: package-import@ubuntu.com-20120726134544-t7hgvydai80uhuh2
Tags: 2.4.1-1
* New upstream release.
* Removed test_final_ranges_thisyear.diff: fixed usptream.
* debian/control: Updated Standards-Version to 3.9.3
* Bumped compat level to 9
* debian/copyright: Updated copyright format & years.
* Un-link python-whoosh-doc documentation directory from python-whoosh
  documentation directory:
  + debian/rules: remove override for dh_installdocs
  + Update python-whoosh-doc.doc-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
            return False
115
115
 
116
116
    def release(self):
 
117
        if self.fd is None:
 
118
            raise Exception("Lock was not acquired")
 
119
 
117
120
        import fcntl  #@UnresolvedImport
118
121
        fcntl.flock(self.fd, fcntl.LOCK_UN)
119
122
        os.close(self.fd)