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

Method __init__

Lib/test/test_ssl.py:2903–2908  ·  view source on GitHub ↗
(self, certfile)

Source from the content-addressed store, hash-verified

2901 raise
2902
2903 def __init__(self, certfile):
2904 self.certfile = certfile
2905 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
2906 self.port = socket_helper.bind_port(sock, '')
2907 asyncore.dispatcher.__init__(self, sock)
2908 self.listen(5)
2909
2910 def handle_accepted(self, sock_obj, addr):
2911 if support.verbose:

Callers

nothing calls this directly

Calls 3

socketMethod · 0.80
__init__Method · 0.45
listenMethod · 0.45

Tested by

no test coverage detected