diff options
author | Lorenzo <tunedconsulting@gmail.com> | 2017-07-19 17:06:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 17:06:34 +0100 |
commit | 46d284dec82d7898344c5b0249b99f0fd1fde9f5 (patch) | |
tree | d396c9cdae5f24faed3db39e61f4f47b935299ee | |
parent | 1239206848760e5c2301fe835775012828cb934f (diff) | |
download | redis-py-46d284dec82d7898344c5b0249b99f0fd1fde9f5.tar.gz |
Fix #878
-rwxr-xr-x | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 4ecfb57..1a8589d 100755 --- a/redis/client.py +++ b/redis/client.py @@ -207,7 +207,7 @@ def zset_score_pairs(response, **options): If ``withscores`` is specified in the options, return the response as a list of (value, score) pairs """ - if not response or 'withscores' not in options.keys() or options['withscores'] is None: + if not response or not options.get('withscores'): return response score_cast_func = options.get('score_cast_func', float) it = iter(response) |