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

Method set_protocol

Lib/asyncio/transports.py:37–39  ·  view source on GitHub ↗

Set a new protocol.

(self, protocol)

Source from the content-addressed store, hash-verified

35 raise NotImplementedError
36
37 def set_protocol(self, protocol):
38 """Set a new protocol."""
39 raise NotImplementedError
40
41 def get_protocol(self):
42 """Return the current protocol."""

Callers 7

__init__Method · 0.45
restoreMethod · 0.45
start_tlsMethod · 0.45
clientMethod · 0.45
clientMethod · 0.45

Calls

no outgoing calls

Tested by 4

clientMethod · 0.36
clientMethod · 0.36