| 709 | ''' |
| 710 | |
| 711 | def __init__(self, host='', user='', passwd='', acct='', |
| 712 | *, context=None, timeout=_GLOBAL_DEFAULT_TIMEOUT, |
| 713 | source_address=None, encoding='utf-8'): |
| 714 | if context is None: |
| 715 | context = ssl._create_stdlib_context() |
| 716 | self.context = context |
| 717 | self._prot_p = False |
| 718 | super().__init__(host, user, passwd, acct, |
| 719 | timeout, source_address, encoding=encoding) |
| 720 | |
| 721 | def login(self, user='', passwd='', acct='', secure=True): |
| 722 | if secure and not isinstance(self.sock, ssl.SSLSocket): |