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

Method page

Lib/pydoc.py:653–663  ·  view source on GitHub ↗

Format an HTML page.

(self, title, contents)

Source from the content-addressed store, hash-verified

651 escape = _repr_instance.escape
652
653 def page(self, title, contents):
654 """Format an HTML page."""
655 return '''\
656<!DOCTYPE html>
657<html lang="en">
658<head>
659<meta charset="utf-8">
660<title>Python: %s</title>
661</head><body>
662%s
663</body></html>''&#x27; % (title, contents)
664
665 def heading(self, title, extras=''):
666 """Format a page heading."""

Callers 2

writedocFunction · 0.45
get_html_pageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected