MCPcopy Create free account
hub / github.com/bpython/bpython / __init__

Method __init__

bpython/filelock.py:94–97  ·  view source on GitHub ↗
(self, filename: str)

Source from the content-addressed store, hash-verified

92 """Simple file locking for Windows using msvcrt"""
93
94 def __init__(self, filename: str) -> None:
95 super().__init__()
96 self.filename = f"{filename}.lock"
97 self.fileobj = -1
98
99 def acquire(self) -> None:
100 # create a lock file and lock it

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected