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

Method _acquire

tests/test_fork_backends.py:33–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 fail_release: bool = False
32
33 def _acquire(self) -> None: # pragma: needs fork
34 self.descriptor = self._context.lock_file_fd = os.open(self.lock_file, os.O_CREAT | os.O_RDWR, 0o600)
35 if self.acquire_error is not None:
36 raise self.acquire_error
37
38 def _release(self) -> None: # pragma: needs fork
39 if self.fail_release:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected