diff options
author | Raphaël Vinot <raphael@vinot.info> | 2011-07-28 13:40:56 -0400 |
---|---|---|
committer | Raphaël Vinot <raphael@vinot.info> | 2011-07-28 13:40:56 -0400 |
commit | 74f15cd085bbe6976d4ea9cfdc9b32bf77a45c6a (patch) | |
tree | 1edb8ea07ea4f030dc84414ce583efdd01df6546 /redis/client.py | |
parent | 3265af8d67299c0d7e91ea657a872e4de1693922 (diff) | |
download | redis-py-74f15cd085bbe6976d4ea9cfdc9b32bf77a45c6a.tar.gz |
Fix zadd: 'tuple' object has no attribute 'reverse' (and args is a tuple)
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py index 7412d62..7b21046 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1111,9 +1111,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]) |