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

Method _acquire

tests/test_fork_registries.py:23–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 @dataclass(eq=True, init=False) # pragma: win32 no cover
22 class EqualLock(BaseFileLock): # pragma: win32 no cover
23 def _acquire(self) -> None: # pragma: win32 no cover
24 self._context.lock_file_fd = os.open(self.lock_file, os.O_CREAT | os.O_RDWR, 0o600)
25
26 def _release(self) -> None: # pragma: win32 no cover
27 os.close(self._context.lock_file_fd if self._context.lock_file_fd is not None else -1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected