diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-08-18 11:09:14 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-08-18 11:09:14 -0700 |
commit | cab038053cd8f0e445287120dd2c68bb5179b1e4 (patch) | |
tree | 1635028bea90d536dec5ad6ee121e8d612e042ad /redis/client.py | |
parent | a12eb8c6d0d729852cafc1be17a6b22e9107946c (diff) | |
download | redis-py-cab038053cd8f0e445287120dd2c68bb5179b1e4.tar.gz |
functions that return sets should now work against older Redis server versions that returned None rather than an empty list.
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 8f63343..b0352fa 100644 --- a/redis/client.py +++ b/redis/client.py @@ -224,7 +224,7 @@ class Redis(threading.local): ), 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) + lambda r: r and set(r) or set() ), string_keys_to_dict('ZRANGE ZRANGEBYSCORE ZREVRANGE', zset_score_pairs), { |