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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy