MCPcopy Index your code
hub / github.com/RustPython/RustPython / _create_client_ssl_context

Method _create_client_ssl_context

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected