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

Function _environment

tasks/benchmark.py:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def _environment() -> str:
60 gil = getattr(sys, "_is_gil_enabled", lambda: True)()
61 build = "gil" if gil else "free-threaded"
62 return (
63 f"filelock {filelock.__version__} | {platform.python_implementation()} {platform.python_version()} ({build}) | "
64 f"{platform.system()} {platform.machine()} | {os.cpu_count()} cpus"
65 )
66
67
68def _backends(root: Path) -> Iterator[tuple[str, Callable[[], filelock.BaseFileLock]]]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected