summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-14 21:11:28 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-14 21:11:28 -0800
commit0ef90870872b7a284af8d5238c939802d1e08fca (patch)
tree8d6068c49e809444eb2bda6f44d955e00abb9116
parentb97fc767bee9e108b0b8a856e64649d08074e320 (diff)
downloadredis-py-0ef90870872b7a284af8d5238c939802d1e08fca.tar.gz
Properly decode cluster info in callbacks
Fixes #951
-rwxr-xr-xredis/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index c2a9070..8cfb07e 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -348,6 +348,7 @@ def parse_slowlog_get(response, **options):
def parse_cluster_info(response, **options):
+ response = nativestr(response)
return dict(line.split(':') for line in response.splitlines() if line)
@@ -370,6 +371,7 @@ def _parse_node_line(line):
def parse_cluster_nodes(response, **options):
+ response = nativestr(response)
raw_lines = response
if isinstance(response, basestring):
raw_lines = response.splitlines()