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

Method _get_socket

tools/python-3.11.9-amd64/Lib/smtplib.py:1053–1059  ·  view source on GitHub ↗
(self, host, port, timeout)

Source from the content-addressed store, hash-verified

1051 source_address)
1052
1053 def _get_socket(self, host, port, timeout):
1054 if self.debuglevel > 0:
1055 self._print_debug('connect:', (host, port))
1056 new_socket = super()._get_socket(host, port, timeout)
1057 new_socket = self.context.wrap_socket(new_socket,
1058 server_hostname=self._host)
1059 return new_socket
1060
1061 __all__.append("SMTP_SSL")
1062

Callers

nothing calls this directly

Calls 3

_print_debugMethod · 0.80
_get_socketMethod · 0.45
wrap_socketMethod · 0.45

Tested by

no test coverage detected