MCPcopy Index your code
hub / github.com/bpython/bpython / page_internal

Function page_internal

bpython/pager.py:39–44  ·  view source on GitHub ↗

A more than dumb pager function.

(data: str)

Source from the content-addressed store, hash-verified

37
38
39def page_internal(data: str) -> None:
40 """A more than dumb pager function."""
41 if hasattr(pydoc, "ttypager"):
42 pydoc.ttypager(data)
43 else:
44 sys.stdout.write(data)
45
46
47def page(data: str, use_internal: bool = False) -> None:

Callers 1

pageFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected