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

Method shim_cb

Lib/ssl.py:498–500  ·  view source on GitHub ↗
(sslobj, servername, sslctx)

Source from the content-addressed store, hash-verified

496 raise TypeError("not a callable object")
497
498 def shim_cb(sslobj, servername, sslctx):
499 servername = self._encode_hostname(servername)
500 return server_name_callback(sslobj, servername, sslctx)
501
502 self.sni_callback = shim_cb
503

Callers

nothing calls this directly

Calls 1

_encode_hostnameMethod · 0.95

Tested by

no test coverage detected