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

Method __init__

bpython/filelock.py:65–68  ·  view source on GitHub ↗
(self, fileobj, mode: int = 0)

Source from the content-addressed store, hash-verified

63 """Simple file locking for Unix using fcntl"""
64
65 def __init__(self, fileobj, mode: int = 0) -> None:
66 super().__init__()
67 self.fileobj = fileobj
68 self.mode = mode | fcntl.LOCK_EX
69
70 def acquire(self) -> None:
71 try:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected