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

Class UnixFileLock

src/filelock/_native/_unix.py:38–47  ·  view source on GitHub ↗

Native Unix lock; acquisition requires :func:`fcntl.flock`.

Source from the content-addressed store, hash-verified

36if sys.platform == "win32": # pragma: win32 cover
37
38 class UnixFileLock(BaseFileLock):
39 """Native Unix lock; acquisition requires :func:`fcntl.flock`."""
40
41 @override
42 def _acquire(self) -> None:
43 raise NotImplementedError
44
45 @override
46 def _release(self) -> None:
47 raise NotImplementedError
48
49else: # pragma: win32 no cover
50 try:

Calls

no outgoing calls