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

Method page

Lib/xmlrpc/server.py:803–815  ·  view source on GitHub ↗

Format an HTML page.

(self, title, contents)

Source from the content-addressed store, hash-verified

801
802
803 def page(self, title, contents):
804 """Format an HTML page."""
805 css_path = "/pydoc.css"
806 css_link = (
807 '<link rel="stylesheet" type="text/css" href="%s">' %
808 css_path)
809 return ''&#x27;\
810<!DOCTYPE>
811<html lang="en">
812<head>
813<meta charset="utf-8">
814<title>Python: %s</title>
815%s</head><body>%s</body></html>''&#x27; % (title, css_link, contents)
816
817class XMLRPCDocGenerator:
818 """Generates documentation for an XML-RPC server.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected