From 74f15cd085bbe6976d4ea9cfdc9b32bf77a45c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 28 Jul 2011 13:40:56 -0400 Subject: Fix zadd: 'tuple' object has no attribute 'reverse' (and args is a tuple) --- redis/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'redis/client.py') 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]) -- cgit v1.2.1