diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-01-30 17:56:14 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-01-30 17:56:14 +0100 |
commit | f848cbfdcb808805f110c88df16068f59918fad8 (patch) | |
tree | 9d3ad58dd912cea32988f06cf083a3c99bb1012e /redis/client.py | |
parent | 0d804601255f93356b217ea690a0dc672033ac4a (diff) | |
download | redis-py-f848cbfdcb808805f110c88df16068f59918fad8.tar.gz |
Integer replies may be of type long
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 7591482..e4d8b2c 100644 --- a/redis/client.py +++ b/redis/client.py @@ -123,7 +123,7 @@ class Redis(threading.local): string_keys_to_dict( # these return OK, or int if redis-server is >=1.3.4 'LPUSH RPUSH', - lambda r: isinstance(r, int) and r or r == 'OK' + lambda r: isinstance(r, long) and r or r == 'OK' ), string_keys_to_dict('ZSCORE ZINCRBY', float_or_none), string_keys_to_dict( |