diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2020-01-31 12:28:16 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-01-31 12:28:16 -0800 |
commit | 5a1f3c448063b3e30d3283cd93ef50973abc3806 (patch) | |
tree | e31f49f0cb02494041939f2bc224976de6b95fd3 /redis/client.py | |
parent | e39ae455dfa259cdbb0c1cee2e4cb50c17ee22bf (diff) | |
download | redis-py-5a1f3c448063b3e30d3283cd93ef50973abc3806.tar.gz |
Move the username argument in the Redis and Connection classes to the end
This helps those poor souls that specify all their connection options as
non-keyword arguments.
Fixes #1276
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 3ad9f12..040d131 100755 --- a/redis/client.py +++ b/redis/client.py @@ -674,7 +674,7 @@ class Redis(object): return cls(connection_pool=connection_pool) def __init__(self, host='localhost', port=6379, - db=0, username=None, password=None, socket_timeout=None, + db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, @@ -685,7 +685,7 @@ class Redis(object): ssl_cert_reqs='required', ssl_ca_certs=None, ssl_check_hostname=False, max_connections=None, single_connection_client=False, - health_check_interval=0, client_name=None): + health_check_interval=0, client_name=None, username=None): if not connection_pool: if charset is not None: warnings.warn(DeprecationWarning( |