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

Method run

Lib/pydoc.py:2400–2411  ·  view source on GitHub ↗

Start the server.

(self)

Source from the content-addressed store, hash-verified

2398 self.docserver = None
2399
2400 def run(self):
2401 """Start the server."""
2402 try:
2403 DocServer.base = http.server.HTTPServer
2404 DocServer.handler = DocHandler
2405 DocHandler.MessageClass = email.message.Message
2406 DocHandler.urlhandler = staticmethod(self.urlhandler)
2407 docsvr = DocServer(self.host, self.port, self.ready)
2408 self.docserver = docsvr
2409 docsvr.serve_until_quit()
2410 except Exception as err:
2411 self.error = err
2412
2413 def ready(self, server):
2414 self.serving = True

Callers 3

listmodulesMethod · 0.45
aproposFunction · 0.45
html_searchFunction · 0.45

Calls 2

serve_until_quitMethod · 0.95
DocServerClass · 0.85

Tested by

no test coverage detected