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

Method _create_socket

Lib/poplib.py:109–112  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

107 self.welcome = self._getresp()
108
109 def _create_socket(self, timeout):
110 if timeout is not None and not timeout:
111 raise ValueError('Non-blocking socket (timeout=0) is not supported')
112 return socket.create_connection((self.host, self.port), timeout)
113
114 def _putline(self, line):
115 if self._debugging > 1: print('*put*', repr(line))

Callers 2

__init__Method · 0.95
_create_socketMethod · 0.45

Calls 1

create_connectionMethod · 0.45

Tested by

no test coverage detected