summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorJeong YunWon <jeong@youknowone.org>2016-05-30 02:51:15 +0900
committerJeong YunWon <jeong@youknowone.org>2016-05-30 02:51:15 +0900
commitc398319b53be4d5e4f6d05d2f4b59e85caef69e4 (patch)
tree6063e7102d64fc67f78f57c84d73fb5d6f80e7f9 /redis/client.py
parent5ef18fd517a50ec04a0a8db353fdba2872c47d61 (diff)
downloadredis-py-c398319b53be4d5e4f6d05d2f4b59e85caef69e4.tar.gz
Check `int` also not only `long`
PyPy can generate an `int` instance here.
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 8ac8b9b..d6bd5c3 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -335,7 +335,7 @@ class StrictRedis(object):
string_keys_to_dict(
# these return OK, or int if redis-server is >=1.3.4
'LPUSH RPUSH',
- lambda r: isinstance(r, long) and r or nativestr(r) == 'OK'
+ lambda r: isinstance(r, (long, int)) and r or nativestr(r) == 'OK'
),
string_keys_to_dict('SORT', sort_return_tuples),
string_keys_to_dict('ZSCORE ZINCRBY', float_or_none),