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

Method open

Lib/imaplib.py:307–316  ·  view source on GitHub ↗

Setup connection to remote server on "host:port" (default: localhost:standard IMAP4 port). This connection will be used by the routines: read, readline, send, shutdown.

(self, host='', port=IMAP4_PORT, timeout=None)

Source from the content-addressed store, hash-verified

305 return socket.create_connection(address)
306
307 def open(self, host='', port=IMAP4_PORT, timeout=None):
308 """Setup connection to remote server on "host:port"
309 (default: localhost:standard IMAP4 port).
310 This connection will be used by the routines:
311 read, readline, send, shutdown.
312 """
313 self.host = host
314 self.port = port
315 self.sock = self._create_socket(timeout)
316 self._file = self.sock.makefile('rb')
317
318
319 @property

Callers 15

__init__Method · 0.95
filter_warnings_by_diffFunction · 0.45
mainFunction · 0.45
get_ids_from_fileFunction · 0.45
mainFunction · 0.45
dumpFunction · 0.45
extract_tarballFunction · 0.45
load_config_tomlFunction · 0.45
should_build_libraryFunction · 0.45
write_library_configFunction · 0.45
clean_contentsFunction · 0.45

Calls 2

_create_socketMethod · 0.95
makefileMethod · 0.45

Tested by 2

dumpFunction · 0.36
_unpack_srcMethod · 0.36