MCPcopy Index your code
hub / github.com/python/cpython / plain_pager

Function plain_pager

Lib/pydoc.py:102–107  ·  view source on GitHub ↗

Simply print unformatted text. This is the ultimate fallback.

(text: str, title: str = '')

Source from the content-addressed store, hash-verified

100 return re.sub('.\b', '', text)
101
102 def plain_pager(text: str, title: str = '') -> None:
103 """Simply print unformatted text. This is the ultimate fallback."""
104 encoding = getattr(sys.stdout, 'encoding', None) or 'utf-8'
105 text = text.encode(encoding, 'backslashreplace').decode(encoding)
106 text = plain(text)
107 sys.stdout.write(text)
108
109 def get_pager():
110 """Unconditionally return the plain pager, since _pyrepl is absent."""

Callers

nothing calls this directly

Calls 4

plainFunction · 0.90
decodeMethod · 0.45
encodeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…