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

Function _build

tasks/verify_filesystem.py:172–177  ·  view source on GitHub ↗
(name: str, lock_path: str)

Source from the content-addressed store, hash-verified

170
171
172def _build(name: str, lock_path: str) -> FileLock | SoftFileLock | StrictSoftFileLock:
173 if name == "FileLock":
174 return FileLock(lock_path)
175 if name == "SoftFileLock":
176 return SoftFileLock(lock_path)
177 return StrictSoftFileLock(lock_path)
178
179
180if __name__ == "__main__":

Callers 1

_hammerFunction · 0.85

Calls 2

SoftFileLockClass · 0.90
StrictSoftFileLockClass · 0.90

Tested by

no test coverage detected