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

Method _create_client_ssl_context

Lib/test/test_asyncio/test_ssl.py:161–166  ·  view source on GitHub ↗
(self, *, disable_verify=True)

Source from the content-addressed store, hash-verified

159 return sslcontext
160
161 def _create_client_ssl_context(self, *, disable_verify=True):
162 sslcontext = ssl.create_default_context()
163 sslcontext.check_hostname = False
164 if disable_verify:
165 sslcontext.verify_mode = ssl.CERT_NONE
166 return sslcontext
167
168 @contextlib.contextmanager
169 def _silence_eof_received_warning(self):

Calls

no outgoing calls

Tested by

no test coverage detected