summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2011-02-09 10:13:53 -0800
committerAndy McCurdy <andy@andymccurdy.com>2011-02-09 10:13:53 -0800
commit5603be671070349ebd0a9f2755d512e903556aaf (patch)
treecec2f8ce4109a094dc0d40d0feb17e1b278be2c0 /redis/client.py
parentc99f09819ab8e0eeaa14ff67247744a42351e44e (diff)
parent32a7469ef67a358d4e07c4f543a31d4587303c88 (diff)
downloadredis-py-5603be671070349ebd0a9f2755d512e903556aaf.tar.gz
Merge remote branch 'bretthoerner/master' into bretthoerner
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index a1c01d8..289f120 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -55,7 +55,7 @@ def parse_info(response):
return value
sub_dict = {}
for item in value.split(','):
- k, v = item.split('=')
+ k, v = item.rsplit('=', 1)
try:
sub_dict[k] = int(v)
except ValueError:
@@ -64,7 +64,7 @@ def parse_info(response):
for line in response.splitlines():
key, value = line.split(':')
try:
- info[key] = int(value)
+ info[key] = float(value) if '.' in value else int(value)
except ValueError:
info[key] = get_value(value)
return info