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

Class DocServer

Lib/pydoc.py:2368–2387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2366 pass
2367
2368 class DocServer(http.server.HTTPServer):
2369
2370 def __init__(self, host, port, callback):
2371 self.host = host
2372 self.address = (self.host, port)
2373 self.callback = callback
2374 self.base.__init__(self, self.address, self.handler)
2375 self.quit = False
2376
2377 def serve_until_quit(self):
2378 while not self.quit:
2379 rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
2380 if rd:
2381 self.handle_request()
2382 self.server_close()
2383
2384 def server_activate(self):
2385 self.base.server_activate(self)
2386 if self.callback:
2387 self.callback(self)
2388
2389 class ServerThread(threading.Thread):
2390

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…