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

Function get_pydoc_html

Lib/test/test_pydoc/test_pydoc.py:329–336  ·  view source on GitHub ↗

Returns pydoc generated output as html

(module)

Source from the content-addressed store, hash-verified

327 return out.strip()
328
329def get_pydoc_html(module):
330 "Returns pydoc generated output as html"
331 doc = pydoc.HTMLDoc()
332 output = doc.docmodule(module)
333 loc = doc.getdocloc(pydoc_mod) or ""
334 if loc:
335 loc = "<br><a href=\"" + loc + "\">Module Docs</a>"
336 return output.strip(), loc
337
338def clean_text(doc):
339 # 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