From c398319b53be4d5e4f6d05d2f4b59e85caef69e4 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 30 May 2016 02:51:15 +0900 Subject: [PATCH] Check `int` also not only `long` PyPy can generate an `int` instance here. --- redis/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/client.py b/redis/client.py index 8ac8b9bf3e..d6bd5c3275 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),