Skip to content

Commit 22db98c

Browse files
mportesdevsebastinas
authored andcommitted
Close lock file using os close()
1 parent 52580b4 commit 22db98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/filelock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def release(self):
110110

111111
# unlock lock file and remove it
112112
msvcrt.locking(self.fileobj, msvcrt.LK_UNLCK, 1)
113-
self.fileobj.close()
113+
os.close(self.fileobj)
114114
self.fileobj = None
115115

116116
try:

0 commit comments

Comments
 (0)