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

Function get_pydoc_html

Lib/test/test_pydoc/test_pydoc.py:326–333  ·  view source on GitHub ↗

Returns pydoc generated output as html

(module)

Source from the content-addressed store, hash-verified

324 return out.strip()
325
326def get_pydoc_html(module):
327 "Returns pydoc generated output as html"
328 doc = pydoc.HTMLDoc()
329 output = doc.docmodule(module)
330 loc = doc.getdocloc(pydoc_mod) or ""
331 if loc:
332 loc = "<br><a href=\"" + loc + "\">Module Docs</a>"
333 return output.strip(), loc
334
335def clean_text(doc):
336 # clean up the extra text formatting that pydoc performs

Callers 2

test_html_docMethod · 0.85
test__future__importsMethod · 0.85

Calls 3

docmoduleMethod · 0.95
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…