MCPcopy Create free account
hub / github.com/python/cpython / get_pydoc_text

Function get_pydoc_text

Lib/test/test_pydoc/test_pydoc.py:348–357  ·  view source on GitHub ↗

Returns pydoc generated output as text

(module)

Source from the content-addressed store, hash-verified

346 return loc
347
348def get_pydoc_text(module):
349 "Returns pydoc generated output as text"
350 doc = pydoc.TextDoc()
351 loc = doc.getdocloc(pydoc_mod) or ""
352 if loc:
353 loc = "\nMODULE DOCS\n " + loc + "\n"
354
355 output = doc.docmodule(module)
356 output = clean_text(output)
357 return output.strip(), loc
358
359def get_html_title(text):
360 # 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…