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

Method page

Lib/pydoc.py:608–618  ·  view source on GitHub ↗

Format an HTML page.

(self, title, contents)

Source from the content-addressed store, hash-verified

606 escape = _repr_instance.escape
607
608 def page(self, title, contents):
609 """Format an HTML page."""
610 return '''\
611<!DOCTYPE html>
612<html lang="en">
613<head>
614<meta charset="utf-8">
615<title>Python: %s</title>
616</head><body>
617%s
618</body></html>''&#x27; % (title, contents)
619
620 def heading(self, title, extras=''):
621 """Format a page heading."""

Callers 2

writedocFunction · 0.45
get_html_pageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected