diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2011-05-23 21:03:16 -0700 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2011-05-23 21:03:16 -0700 |
| commit | 1c3546c27b8be7e179ce973952ac70861c4861db (patch) | |
| tree | 83870df5c16796999d6134060a23a16cb171bdde | |
| parent | c8a9ec60167afff8a340d9b732b0b1e003b289e2 (diff) | |
| download | redis-py-1c3546c27b8be7e179ce973952ac70861c4861db.tar.gz | |
renamed path arg to unix_socket_path to make it clearer
| -rw-r--r-- | redis/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py index 371bd20..aafdd17 100644 --- a/redis/client.py +++ b/redis/client.py @@ -158,7 +158,7 @@ class Redis(object): def __init__(self, host='localhost', port=6379, db=0, password=None, socket_timeout=None, connection_pool=None, - charset='utf-8', errors='strict', path=None): + charset='utf-8', errors='strict', unix_socket_path=None): if not connection_pool: kwargs = { 'db': db, @@ -168,9 +168,9 @@ class Redis(object): 'encoding_errors': errors } # based on input, setup appropriate connection args - if path: + if unix_socket_path: kwargs.update({ - 'path': path, + 'path': unix_socket_path, 'connection_class': UnixDomainSocketConnection }) else: |
