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

Function _check_ssl_socket

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

Source from the content-addressed store, hash-verified

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

Callers 4

sock_sendfileMethod · 0.85
create_connectionMethod · 0.85
create_serverMethod · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected