summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorwil paredes <code@dystedium.com>2014-02-09 21:13:28 -0800
committerwil paredes <code@dystedium.com>2014-02-09 21:13:28 -0800
commit6d3473de519ef5d4ebbfd788fce6785905c27c37 (patch)
treedb12193356f9d1df4f7aad72747177c2c523f6f8 /redis/connection.py
parentf490061c37c3684eac708ffc248aa28e9b36dc7d (diff)
downloadredis-py-6d3473de519ef5d4ebbfd788fce6785905c27c37.tar.gz
restore a feature that was inadvertently removed
* fixed parsing URLs without a scheme, e.g. "//localhost:6379"
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 0469bab..9de7322 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -52,7 +52,7 @@ def parse_url(url, db=None, **kwargs):
url = urlparse(url)
# We only support redis:// and unix:// schemes.
- if url.scheme == 'redis':
+ if url.scheme == 'redis' or not url.scheme:
# Extract the database ID from the path component
# if it hasn't been given.
if db is None: