MCPcopy Index your code
hub / github.com/bpython/bpython / release

Method release

bpython/filelock.py:108–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.locked = True
107
108 def release(self) -> None:
109 self.locked = False
110
111 # unlock lock file and remove it
112 msvcrt.locking(self.fileobj, msvcrt.LK_UNLCK, 1)
113 os.close(self.fileobj)
114 self.fileobj = -1
115
116 try:
117 os.remove(self.filename)
118 except OSError:
119 pass
120
121 has_msvcrt = True
122except ImportError:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected