summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorKonstantin Merenkov <kmerenkov@gmail.com>2010-05-22 03:03:43 +0800
committerAndy McCurdy <andy@andymccurdy.com>2010-06-02 01:43:39 +0800
commitb686c967e71e3b406f2af4f36744a5258ceca8bb (patch)
tree7f259be826c16c9021c7a39fbc3d64b4fea4dcda /redis/client.py
parent7e8ec2e28d636fb878617f1d0788973aaffd309c (diff)
downloadredis-py-b686c967e71e3b406f2af4f36744a5258ceca8bb.tar.gz
BLPOP / BRPOP return tuple instead of a list, as it makes more sense
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 85be36c..0841c04 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -222,6 +222,7 @@ class Redis(threading.local):
'SAVE SELECT SET SHUTDOWN',
lambda r: r == 'OK'
),
+ string_keys_to_dict('BLPOP BRPOP', lambda r: r and tuple(r) or None),
string_keys_to_dict('SDIFF SINTER SMEMBERS SUNION',
lambda r: set(r)
),