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

Function clean_text

Lib/test/test_pydoc/test_pydoc.py:335–337  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

333 return output.strip(), loc
334
335def clean_text(doc):
336 # clean up the extra text formatting that pydoc performs
337 return re.sub('\b.', '', doc)
338
339def get_pydoc_link(module):
340 "Returns a documentation web link of a module"

Callers 6

get_pydoc_textFunction · 0.85
run_pydoc_pagerMethod · 0.85
test_method_aliasesMethod · 0.85
test_long_signaturesMethod · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…