FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Close lock file using os close() · bpython/bpython@22db98c · GitHub

Commit 22db98c

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL