We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a6e34c commit afc0eb3Copy full SHA for afc0eb3
bpython/filelock.py
@@ -85,8 +85,8 @@ def acquire(self):
85
raise e
86
87
def release(self):
88
- fcntl.flock(self.fileobj, fcntl.LOCK_UN)
89
self.locked = False
+ fcntl.flock(self.fileobj, fcntl.LOCK_UN)
90
91
92
class WindowsFileLock(BaseLock):
@@ -101,8 +101,8 @@ def acquire(self):
101
self.locked = True
102
103
104
- msvcrt.locking(self.fileobj.fileno(), msvcrt.LK_UNLCK, 1)
105
+ msvcrt.locking(self.fileobj.fileno(), msvcrt.LK_UNLCK, 1)
106
107
108
if has_fcntl:
0 commit comments