MCPcopy Index your code
hub / github.com/RustPython/RustPython / clean_text

Function clean_text

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

Source from the content-addressed store, hash-verified

336 return output.strip(), loc
337
338def clean_text(doc):
339 # clean up the extra text formatting that pydoc performs
340 return re.sub('\b.', '', doc)
341
342def get_pydoc_link(module):
343 "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