summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom King <tom.king2@baesystems.com>2020-08-17 10:40:30 +0100
committerAndy McCurdy <andy@andymccurdy.com>2020-08-17 09:25:51 -0700
commitf9ab1d35f8ec633a25c223ed979cef34a68072fe (patch)
tree8435ba327b15d260cd1602cb15f35f6909366fe5
parent6b37f4bedc349eb2c91e680d2ef811a3c2f7e879 (diff)
downloadredis-py-f9ab1d35f8ec633a25c223ed979cef34a68072fe.tar.gz
fix: Align from_url in utils.py to remove DB as a 2nd param
-rw-r--r--redis/utils.py4
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