summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorLorenzo <tunedconsulting@gmail.com>2017-07-19 17:06:34 +0100
committerGitHub <noreply@github.com>2017-07-19 17:06:34 +0100
commit46d284dec82d7898344c5b0249b99f0fd1fde9f5 (patch)
treed396c9cdae5f24faed3db39e61f4f47b935299ee /redis/client.py
parent1239206848760e5c2301fe835775012828cb934f (diff)
downloadredis-py-46d284dec82d7898344c5b0249b99f0fd1fde9f5.tar.gz
Fix #878
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 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)