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

Function get_pydoc_text

Lib/test/test_pydoc/test_pydoc.py:351–360  ·  view source on GitHub ↗

Returns pydoc generated output as text

(module)

Source from the content-addressed store, hash-verified

349 return loc
350
351def get_pydoc_text(module):
352 "Returns pydoc generated output as text"
353 doc = pydoc.TextDoc()
354 loc = doc.getdocloc(pydoc_mod) or ""
355 if loc:
356 loc = "\nMODULE DOCS\n " + loc + "\n"
357
358 output = doc.docmodule(module)
359 output = clean_text(output)
360 return output.strip(), loc
361
362def get_html_title(text):
363 # Bit of hack, but good enough for test purposes

Callers 4

test_text_docMethod · 0.85
test_issue8225Method · 0.85
test__future__importsMethod · 0.85

Calls 4

docmoduleMethod · 0.95
clean_textFunction · 0.85
getdoclocMethod · 0.80
stripMethod · 0.45

Tested by

no test coverage detected