Skip to content

Commit

Permalink
Merge pull request #744 from youknowone/pypy-compat
Browse files Browse the repository at this point in the history
Check also `int` not only `long` for PyPy.
  • Loading branch information
andymccurdy committed May 31, 2016
2 parents 5ef18fd + c398319 commit 20fc04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 20fc04e

Please sign in to comment.