summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 565f133..c303dbd 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -1109,7 +1109,7 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands, SentinelCommands):
self.response_callbacks = CaseInsensitiveDict(self.__class__.RESPONSE_CALLBACKS)
- if self.connection_pool.connection_kwargs.get("protocol") == "3":
+ if self.connection_pool.connection_kwargs.get("protocol") in ["3", 3]:
self.response_callbacks.update(self.__class__.RESP3_RESPONSE_CALLBACKS)
def __repr__(self):