MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/smtplib.py:1028–1035  ·  view source on GitHub ↗
(self, host='', port=0, local_hostname=None,
                     *, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
                     source_address=None, context=None)

Source from the content-addressed store, hash-verified

1026 default_port = SMTP_SSL_PORT
1027
1028 def __init__(self, host='', port=0, local_hostname=None,
1029 *, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
1030 source_address=None, context=None):
1031 if context is None:
1032 context = ssl._create_stdlib_context()
1033 self.context = context
1034 SMTP.__init__(self, host, port, local_hostname, timeout,
1035 source_address)
1036
1037 def _get_socket(self, host, port, timeout):
1038 if self.debuglevel > 0:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected