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

Method __init__

Lib/poplib.py:98–107  ·  view source on GitHub ↗
(self, host, port=POP3_PORT,
                 timeout=socket._GLOBAL_DEFAULT_TIMEOUT)

Source from the content-addressed store, hash-verified

96 encoding = 'UTF-8'
97
98 def __init__(self, host, port=POP3_PORT,
99 timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
100 self.host = host
101 self.port = port
102 self._tls_established = False
103 sys.audit("poplib.connect", self, host, port)
104 self.sock = self._create_socket(timeout)
105 self.file = self.sock.makefile('rb')
106 self._debugging = 0
107 self.welcome = self._getresp()
108
109 def _create_socket(self, timeout):
110 if timeout is not None and not timeout:

Callers 1

__init__Method · 0.45

Calls 3

_create_socketMethod · 0.95
_getrespMethod · 0.95
makefileMethod · 0.45

Tested by

no test coverage detected