summaryrefslogtreecommitdiff
path: root/redis/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/utils.py')
-rw-r--r--redis/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/utils.py b/redis/utils.py
index 863541d..466509b 100644
--- a/redis/utils.py
+++ b/redis/utils.py
@@ -4,6 +4,7 @@ from .client import Redis
DEFAULT_DATABASE_ID = 0
+
def from_url(url, db=None):
"""Returns an active Redis client generated from the given database URL.
@@ -28,4 +29,4 @@ def from_url(url, db=None):
host=url.hostname,
port=url.port,
db=db,
- password=url.password) \ No newline at end of file
+ password=url.password)