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

Method page

Lib/pydoc.py:2449–2462  ·  view source on GitHub ↗

Format an HTML page.

(self, title, contents)

Source from the content-addressed store, hash-verified

2447 class _HTMLDoc(HTMLDoc):
2448
2449 def page(self, title, contents):
2450 """Format an HTML page."""
2451 css_path = "pydoc_data/_pydoc.css"
2452 css_link = (
2453 '<link rel="stylesheet" type="text/css" href="%s">' %
2454 css_path)
2455 return ''&#x27;\
2456<!DOCTYPE>
2457<html lang="en">
2458<head>
2459<meta charset="utf-8">
2460<title>Pydoc: %s</title>
2461%s</head><body>%s<div style="clear:both;padding-top:.5em;">%s</div>
2462</body></html>''&#x27; % (title, css_link, html_navbar(), contents)
2463
2464
2465 html = _HTMLDoc()

Callers

nothing calls this directly

Calls 1

html_navbarFunction · 0.85

Tested by

no test coverage detected