This works identically to NNTP.__init__, except for the change in default port and the `ssl_context` argument for SSL connections.
(self, host, port=NNTP_SSL_PORT,
user=None, password=None, ssl_context=None,
readermode=None, usenetrc=False,
timeout=_GLOBAL_DEFAULT_TIMEOUT)
| 1018 | class NNTP_SSL(NNTP): |
| 1019 | |
| 1020 | def __init__(self, host, port=NNTP_SSL_PORT, |
| 1021 | user=None, password=None, ssl_context=None, |
| 1022 | readermode=None, usenetrc=False, |
| 1023 | timeout=_GLOBAL_DEFAULT_TIMEOUT): |
| 1024 | """This works identically to NNTP.__init__, except for the change |
| 1025 | in default port and the `ssl_context` argument for SSL connections. |
| 1026 | """ |
| 1027 | self.ssl_context = ssl_context |
| 1028 | super().__init__(host, port, user, password, readermode, |
| 1029 | usenetrc, timeout) |
| 1030 | |
| 1031 | def _create_socket(self, timeout): |
| 1032 | sock = super()._create_socket(timeout) |