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

Method _get_socket

Lib/smtplib.py:1037–1043  ·  view source on GitHub ↗
(self, host, port, timeout)

Source from the content-addressed store, hash-verified

1035 source_address)
1036
1037 def _get_socket(self, host, port, timeout):
1038 if self.debuglevel > 0:
1039 self._print_debug('connect:', (host, port))
1040 new_socket = super()._get_socket(host, port, timeout)
1041 new_socket = self.context.wrap_socket(new_socket,
1042 server_hostname=self._host)
1043 return new_socket
1044
1045 __all__.append("SMTP_SSL")
1046

Callers

nothing calls this directly

Calls 4

superClass · 0.85
_print_debugMethod · 0.80
wrap_socketMethod · 0.80
_get_socketMethod · 0.45

Tested by

no test coverage detected