MCPcopy Create free account
hub / github.com/tox-dev/filelock / _release

Method _release

src/filelock/_windows.py:88–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self._context.lock_file_fd = fd
87
88 def _release(self) -> None:
89 fd = cast("int", self._context.lock_file_fd)
90 self._context.lock_file_fd = None
91 msvcrt.locking(fd, msvcrt.LK_UNLCK, 1)
92 os.close(fd)
93
94 with suppress(OSError):
95 Path(self.lock_file).unlink()
96
97else: # pragma: win32 no cover
98

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected