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

Class MyProto

Lib/test/test_asyncio/test_ssl.py:566–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564 loop = self.loop
565
566 class MyProto(MyBaseProto):
567
568 def connection_lost(self, exc):
569 super().connection_lost(exc)
570 loop.call_soon(loop.stop)
571
572 def data_received(self, data):
573 super().data_received(data)
574 self.transport.write(expected_response)
575
576 lsock = socket.socket(socket.AF_INET)
577 lsock.bind(('127.0.0.1', 0))

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…