/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/lock.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-07 15:22:42 UTC
  • mfrom: (1843 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1846.
  • Revision ID: john@arbash-meinel.com-20060707152242-a7b5e0afd64d9d5a
[merge] bzr.dev 1843

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
                    overlapped = pywintypes.OVERLAPPED()
127
127
                    win32file.LockFileEx(self.hfile, lockmode, 0, 0x7fff0000, overlapped)
128
128
                except Exception, e:
 
129
                    if self.f:
 
130
                        self.f.close()
 
131
                        self.f = None
129
132
                    raise LockError(e)
130
133
 
131
134
            def unlock(self):