summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorswilly22 <roi@redislabs.com>2017-09-19 09:28:24 +0300
committerswilly22 <roi@redislabs.com>2017-09-22 11:23:08 +0300
commit6dec9c1592829f313e7a8d31b1b692e49010ad15 (patch)
tree65773781d2609a34238aaaf653288631d74a5907 /redis/client.py
parente5841967d08610b78c22bd02e52bdc436424367b (diff)
downloadredis-py-6dec9c1592829f313e7a8d31b1b692e49010ad15.tar.gz
clientlist response, client_name value might contain the '=' character, in that case the response parser will fail
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 6383e55..e3b5ed7 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -245,7 +245,8 @@ def bool_ok(response):
def parse_client_list(response, **options):
clients = []
for c in nativestr(response).splitlines():
- clients.append(dict([pair.split('=') for pair in c.split(' ')]))
+ # Values might contain '='
+ clients.append(dict([pair.split('=', 1) for pair in c.split(' ')]))
return clients