(self, host='', port=IMAP4_SSL_PORT,
*, ssl_context=None, timeout=None)
| 1633 | |
| 1634 | |
| 1635 | def __init__(self, host='', port=IMAP4_SSL_PORT, |
| 1636 | *, ssl_context=None, timeout=None): |
| 1637 | if ssl_context is None: |
| 1638 | ssl_context = ssl._create_stdlib_context() |
| 1639 | self.ssl_context = ssl_context |
| 1640 | IMAP4.__init__(self, host, port, timeout) |
| 1641 | |
| 1642 | def _create_socket(self, timeout): |
| 1643 | sock = IMAP4._create_socket(self, timeout) |