MCPcopy
hub / github.com/redis/redis-py / get_protocol_version

Function get_protocol_version

tests/conftest.py:833–839  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

831
832
833def get_protocol_version(r):
834 protocol = _get_raw_protocol(r)
835 # ``protocol is None`` means the caller did not specify one, so the
836 # connection negotiates the library default on the wire.
837 if protocol is None:
838 return DEFAULT_RESP_VERSION
839 return protocol
840
841
842def get_legacy_responses(r):

Callers 2

test_push_handlerMethod · 0.90
is_resp2_connectionFunction · 0.70

Calls 1

_get_raw_protocolFunction · 0.85

Tested by

no test coverage detected