Skip to content

Commit 1c3546c

Browse files
committed
renamed path arg to unix_socket_path to make it clearer
1 parent c8a9ec6 commit 1c3546c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Redis(object):
158158
def __init__(self, host='localhost', port=6379,
159159
db=0, password=None, socket_timeout=None,
160160
connection_pool=None,
161-
charset='utf-8', errors='strict', path=None):
161+
charset='utf-8', errors='strict', unix_socket_path=None):
162162
if not connection_pool:
163163
kwargs = {
164164
'db': db,
@@ -168,9 +168,9 @@ def __init__(self, host='localhost', port=6379,
168168
'encoding_errors': errors
169169
}
170170
# based on input, setup appropriate connection args
171-
if path:
171+
if unix_socket_path:
172172
kwargs.update({
173-
'path': path,
173+
'path': unix_socket_path,
174174
'connection_class': UnixDomainSocketConnection
175175
})
176176
else:

0 commit comments

Comments
 (0)