Skip to content

Commit 7b1f196

Browse files
committed
[cosmetic] a bit of formating + fixed a typo
1 parent ca2759c commit 7b1f196

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_all_connections(self):
3535
class Connection(object):
3636
"Manages TCP communication to and from a Redis server"
3737
def __init__(self, host='localhost', port=6379, db=0, password=None,
38-
socket_timeout=None):
38+
socket_timeout=None):
3939
self.host = host
4040
self.port = port
4141
self.db = db
@@ -45,7 +45,7 @@ def __init__(self, host='localhost', port=6379, db=0, password=None,
4545
self._fp = None
4646

4747
def connect(self, redis_instance):
48-
"Connects to the Redis server is not already connected"
48+
"Connects to the Redis server if not already connected"
4949
if self._sock:
5050
return
5151
try:
@@ -225,8 +225,8 @@ class Redis(threading.local):
225225
SUBSCRIPTION_COMMANDS = set(['SUBSCRIBE', 'UNSUBSCRIBE'])
226226

227227
def __init__(self, host='localhost', port=6379,
228-
db=0, password=None, socket_timeout=None,
229-
charset='utf-8', errors='strict'):
228+
db=0, password=None, socket_timeout=None,
229+
charset='utf-8', errors='strict'):
230230
self.encoding = charset
231231
self.errors = errors
232232
self.connection = None

0 commit comments

Comments
 (0)