summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorandy <andy@andymccurdy.com>2011-08-01 11:51:47 -0700
committerandy <andy@andymccurdy.com>2011-08-01 11:51:47 -0700
commit2b9a413fc9b8b644aeeb7599b2f579b01a09589b (patch)
tree4d6c284a7686915b5529e2f97b0ffe25c41c6675 /redis/client.py
parente2b66fdf209eb751c161eb06cc05683518df763f (diff)
parentd80d3d241bf9fb6fa4201040352a450d55491fe8 (diff)
downloadredis-py-2b9a413fc9b8b644aeeb7599b2f579b01a09589b.tar.gz
Merge branch 'master' of github.com:andymccurdy/redis-py
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py
index 08b166f..979c147 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1118,9 +1118,7 @@ class Redis(StrictRedis):
if len(args) % 2 != 0:
raise RedisError("ZADD requires an equal number of "
"values and scores")
- temp_args = args
- temp_args.reverse()
- pieces.extend(temp_args)
+ pieces.extend(reversed(args))
for pair in kwargs.iteritems():
pieces.append(pair[1])
pieces.append(pair[0])