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

Method __init__

bpython/_internal.py:11–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class _Helper:
11 def __init__(self) -> None:
12 if hasattr(pydoc.Helper, "output"):
13 # See issue #228
14 self.helper = pydoc.Helper(sys.stdin, None)
15 else:
16 self.helper = pydoc.Helper(sys.stdin, sys.stdout)
17
18 def __repr__(self) -> str:
19 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected