MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/nntplib.py:1020–1029  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected