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

Function _check_ssl_socket

Lib/asyncio/base_events.py:204–206  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

202
203
204def _check_ssl_socket(sock):
205 if ssl is not None and isinstance(sock, ssl.SSLSocket):
206 raise TypeError("Socket cannot be of type SSLSocket")
207
208
209class _SendfileFallbackProtocol(protocols.Protocol):

Callers 4

sock_sendfileMethod · 0.85
create_connectionMethod · 0.85
create_serverMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…