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

Function __call__

bpython/curtsiesfrontend/sitefix.py:8–9  ·  view source on GitHub ↗
(self, code=None)

Source from the content-addressed store, hash-verified

6 """Redefine builtins 'quit' and 'exit' not so close stdin"""
7
8 def __call__(self, code=None):
9 raise SystemExit(code)
10
11 __call__.__name__ = "FakeQuitCall"
12 builtins.quit.__class__.__call__ = __call__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected