diff options
author | Konstantin Merenkov <kmerenkov@gmail.com> | 2010-04-01 02:22:40 +0400 |
---|---|---|
committer | Konstantin Merenkov <kmerenkov@gmail.com> | 2010-04-01 02:22:40 +0400 |
commit | 7b1f19686cfbd451348f836abfaeae39ca1932ec (patch) | |
tree | db63c21ba0cdbfa12e1041b8f740813d31a28405 /redis/client.py | |
parent | ca2759c1642ef420528156b3bf302c0c051c500f (diff) | |
download | redis-py-7b1f19686cfbd451348f836abfaeae39ca1932ec.tar.gz |
[cosmetic] a bit of formating + fixed a typo
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py index 4c58eb1..abbb2d6 100644 --- a/redis/client.py +++ b/redis/client.py @@ -35,7 +35,7 @@ connection_manager = ConnectionManager() class Connection(object): "Manages TCP communication to and from a Redis server" def __init__(self, host='localhost', port=6379, db=0, password=None, - socket_timeout=None): + socket_timeout=None): self.host = host self.port = port self.db = db @@ -45,7 +45,7 @@ class Connection(object): self._fp = None def connect(self, redis_instance): - "Connects to the Redis server is not already connected" + "Connects to the Redis server if not already connected" if self._sock: return try: @@ -225,8 +225,8 @@ class Redis(threading.local): SUBSCRIPTION_COMMANDS = set(['SUBSCRIBE', 'UNSUBSCRIBE']) def __init__(self, host='localhost', port=6379, - db=0, password=None, socket_timeout=None, - charset='utf-8', errors='strict'): + db=0, password=None, socket_timeout=None, + charset='utf-8', errors='strict'): self.encoding = charset self.errors = errors self.connection = None |