MCPcopy Index your code
hub / github.com/RustPython/RustPython / open

Method open

Lib/imaplib.py:310–319  ·  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

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

Callers 15

__init__Method · 0.95
index.jsFile · 0.45
openMethod · 0.45
fdopenFunction · 0.45
unix_getpassFunction · 0.45
_open_terminalFunction · 0.45
slave_openFunction · 0.45
synopsisFunction · 0.45
browseFunction · 0.45
_rmtree_safe_fd_stepFunction · 0.45
_make_tarballFunction · 0.45
_unpack_tarfileFunction · 0.45

Calls 2

_create_socketMethod · 0.95
makefileMethod · 0.45

Tested by

no test coverage detected