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

Class UnixFileLock

src/filelock/_unix.py:17–24  ·  view source on GitHub ↗

Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.

Source from the content-addressed store, hash-verified

15if sys.platform == "win32": # pragma: win32 cover
16
17 class UnixFileLock(BaseFileLock):
18 """Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems."""
19
20 def _acquire(self) -> None:
21 raise NotImplementedError
22
23 def _release(self) -> None:
24 raise NotImplementedError
25
26else: # pragma: win32 no cover
27 try:

Calls

no outgoing calls