summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2010-03-04 11:14:52 -0800
committerAndy McCurdy <andy@andymccurdy.com>2010-03-04 11:14:52 -0800
commit6243255706026fa0f5ac221bcccb361a48ad03cb (patch)
tree429d2fad6e04c79ea47b20e2a22f36df62df95a9 /redis/client.py
parentc1e762849f52c2ec1f66bf0a7c1ce4d9a1ee7153 (diff)
downloadredis-py-6243255706026fa0f5ac221bcccb361a48ad03cb.tar.gz
complete analness about the :
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/redis/client.py b/redis/client.py
index 590348f..88dfd9f 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -176,13 +176,13 @@ class Redis(object):
),
string_keys_to_dict('ZRANGE ZRANGEBYSCORE ZREVRANGE', zset_score_pairs),
{
- 'BGSAVE' : lambda r: r == 'Background saving started',
- 'INFO' : parse_info,
- 'KEYS' : lambda r: r and r.split(' ') or [],
- 'LASTSAVE' : timestamp_to_datetime,
- 'PING' : lambda r: r == 'PONG',
- 'RANDOMKEY' : lambda r: r and r or None,
- 'TTL' : lambda r: r != -1 and r or None,
+ 'BGSAVE': lambda r: r == 'Background saving started',
+ 'INFO': parse_info,
+ 'KEYS': lambda r: r and r.split(' ') or [],
+ 'LASTSAVE': timestamp_to_datetime,
+ 'PING': lambda r: r == 'PONG',
+ 'RANDOMKEY': lambda r: r and r or None,
+ 'TTL': lambda r: r != -1 and r or None,
}
)
@@ -810,7 +810,7 @@ class Redis(object):
pieces = ['ZRANGE', name, start, end]
if withscores:
pieces.append('withscores')
- return self.format_inline(*pieces, **{'withscores' : withscores})
+ return self.format_inline(*pieces, **{'withscores': withscores})
def zrangebyscore(self, name, min, max, start=None, num=None, withscores=False):
"""
@@ -830,7 +830,7 @@ class Redis(object):
pieces.extend(['LIMIT', start, num])
if withscores:
pieces.append('withscores')
- return self.format_inline(*pieces, **{'withscores' : withscores})
+ return self.format_inline(*pieces, **{'withscores': withscores})
def zrem(self, name, value):
"Remove member ``value`` from sorted set ``name``"
@@ -856,7 +856,7 @@ class Redis(object):
pieces = ['ZREVRANGE', name, start, num]
if withscores:
pieces.append('withscores')
- return self.format_inline(*pieces, **{'withscores' : withscores})
+ return self.format_inline(*pieces, **{'withscores': withscores})
def zscore(self, name, value):
"Return the score of element ``value`` in sorted set ``name``"