diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-05-06 23:31:02 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-05-06 23:31:02 -0700 |
commit | c4615fecafbb5f4da5f7e8fbc33e8860929d1c53 (patch) | |
tree | fb5379f8e15592106c26848d4773e4edd6c8019a /redis/client.py | |
parent | 02c7eef093854fd41ef1b6e9e8274204c69eed10 (diff) | |
parent | ab9352adc28cc3aff02a2269ebe3472cee3aea0a (diff) | |
download | redis-py-c4615fecafbb5f4da5f7e8fbc33e8860929d1c53.tar.gz |
Merge branch 'pr/432'
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 3becc22..ef3d5dd 100644 --- a/redis/client.py +++ b/redis/client.py @@ -107,8 +107,12 @@ def parse_info(response): for line in response.splitlines(): if line and not line.startswith('#'): - key, value = line.split(':', 1) - info[key] = get_value(value) + if line.find(':') != -1: + key, value = line.split(':', 1) + info[key] = get_value(value) + else: + info.setdefault('__raw__', []).append(line) + return info |