(self)
| 35 | self._context.lock_file_fd = file_handler |
| 36 | |
| 37 | def _release(self) -> None: |
| 38 | assert self._context.lock_file_fd is not None # noqa: S101 |
| 39 | os.close(self._context.lock_file_fd) # the lock file is definitely not None |
| 40 | self._context.lock_file_fd = None |
| 41 | with suppress(OSError): # the file is already deleted and that's what we want |
| 42 | Path(self.lock_file).unlink() |
| 43 | |
| 44 | |
| 45 | __all__ = [ |
nothing calls this directly
no outgoing calls
no test coverage detected