diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-12-21 12:48:12 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-12-21 12:48:12 -0800 |
commit | 5f99011ae98809ffc569793cd9896c24d1d9ee6b (patch) | |
tree | 56e4e9c139b531be7fc78f0e10a0a060746bdbae /redis/client.py | |
parent | 9fea093fe191d23a98fce41dbd3eca09ef53f1c1 (diff) | |
download | redis-py-5f99011ae98809ffc569793cd9896c24d1d9ee6b.tar.gz |
fixes #76 where ZREVRANK was using the wrong response callback
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 967bcee..d173d26 100644 --- a/redis/client.py +++ b/redis/client.py @@ -218,7 +218,7 @@ class Redis(threading.local): string_keys_to_dict( 'DECRBY GETBIT HLEN INCRBY LINSERT LLEN LPUSHX RPUSHX SCARD ' 'SDIFFSTORE SETBIT SETRANGE SINTERSTORE STRLEN SUNIONSTORE ZCARD ' - 'ZREMRANGEBYRANK ZREMRANGEBYSCORE ZREVRANK', + 'ZREMRANGEBYRANK ZREMRANGEBYSCORE', int ), string_keys_to_dict( @@ -237,6 +237,7 @@ class Redis(threading.local): lambda r: r and set(r) or set() ), string_keys_to_dict('ZRANGE ZRANGEBYSCORE ZREVRANGE', zset_score_pairs), + string_keys_to_dict('ZRANK ZREVRANK', int_or_none), { 'BGREWRITEAOF': lambda r: \ r == 'Background rewriting of AOF file started', @@ -249,7 +250,6 @@ class Redis(threading.local): 'PING': lambda r: r == 'PONG', 'RANDOMKEY': lambda r: r and r or None, 'TTL': lambda r: r != -1 and r or None, - 'ZRANK': int_or_none, } ) |