Skip to content

Commit 20fc04e

Browse files
committed
Merge pull request #744 from youknowone/pypy-compat
Check also `int` not only `long` for PyPy.
2 parents 5ef18fd + c398319 commit 20fc04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class StrictRedis(object):
335335
string_keys_to_dict(
336336
# these return OK, or int if redis-server is >=1.3.4
337337
'LPUSH RPUSH',
338-
lambda r: isinstance(r, long) and r or nativestr(r) == 'OK'
338+
lambda r: isinstance(r, (long, int)) and r or nativestr(r) == 'OK'
339339
),
340340
string_keys_to_dict('SORT', sort_return_tuples),
341341
string_keys_to_dict('ZSCORE ZINCRBY', float_or_none),

0 commit comments

Comments
 (0)