diff options
author | Tom King <tom.king2@baesystems.com> | 2020-08-17 10:40:30 +0100 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-08-17 09:25:51 -0700 |
commit | f9ab1d35f8ec633a25c223ed979cef34a68072fe (patch) | |
tree | 8435ba327b15d260cd1602cb15f35f6909366fe5 /redis/utils.py | |
parent | 6b37f4bedc349eb2c91e680d2ef811a3c2f7e879 (diff) | |
download | redis-py-f9ab1d35f8ec633a25c223ed979cef34a68072fe.tar.gz |
fix: Align from_url in utils.py to remove DB as a 2nd param
Diffstat (limited to 'redis/utils.py')
-rw-r--r-- | redis/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/utils.py b/redis/utils.py index 3664708..26fb002 100644 --- a/redis/utils.py +++ b/redis/utils.py @@ -8,7 +8,7 @@ except ImportError: HIREDIS_AVAILABLE = False -def from_url(url, db=None, **kwargs): +def from_url(url, **kwargs): """ Returns an active Redis client generated from the given database URL. @@ -16,7 +16,7 @@ def from_url(url, db=None, **kwargs): none is provided. """ from redis.client import Redis - return Redis.from_url(url, db, **kwargs) + return Redis.from_url(url, **kwargs) @contextmanager |