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

Method __exit__

bpython/filelock.py:43–51  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

41 return self
42
43 def __exit__(
44 self,
45 exc_type: type[BaseException] | None,
46 exc: BaseException | None,
47 exc_tb: TracebackType | None,
48 ) -> Literal[False]:
49 if self.locked:
50 self.release()
51 return False
52
53 def __del__(self) -> None:
54 if self.locked:

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected