提交 f9ab1d35 编写于 作者: T Tom King 提交者: Andy McCurdy

fix: Align from_url in utils.py to remove DB as a 2nd param

上级 6b37f4be
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册