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

Function plain

Lib/pydoc.py:98–100  ·  view source on GitHub ↗

Remove boldface formatting from text.

(text: str)

Source from the content-addressed store, hash-verified

96 # Minimal alternatives for cases where _pyrepl is absent.
97
98 def plain(text: str) -> str:
99 """Remove boldface formatting from text."""
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."""

Callers

nothing calls this directly

Calls 1

subMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…