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

Method __init__

Lib/imaplib.py:191–217  ·  view source on GitHub ↗
(self, host='', port=IMAP4_PORT, timeout=None)

Source from the content-addressed store, hash-verified

189 class _responsetimeout(TimeoutError): pass # No response during IDLE
190
191 def __init__(self, host='', port=IMAP4_PORT, timeout=None):
192 self.debug = Debug
193 self.state = 'LOGOUT'
194 self.literal = None # A literal argument to a command
195 self.tagged_commands = {} # Tagged commands awaiting response
196 self.untagged_responses = {} # {typ: [data, ...], ...}
197 self.continuation_response = '' # Last continuation response
198 self._idle_responses = [] # Response queue for idle iteration
199 self._idle_capture = False # Whether to queue responses for idle
200 self.is_readonly = False # READ-ONLY desired state
201 self.tagnum = 0
202 self._tls_established = False
203 self._mode_ascii()
204 self._readbuf = []
205
206 # Open socket to server.
207
208 self.open(host, port, timeout)
209
210 try:
211 self._connect()
212 except Exception:
213 try:
214 self.shutdown()
215 except OSError:
216 pass
217 raise
218
219 def _mode_ascii(self):
220 self.utf8_enabled = False

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 4

_mode_asciiMethod · 0.95
openMethod · 0.95
_connectMethod · 0.95
shutdownMethod · 0.95

Tested by

no test coverage detected