diff options
author | wil paredes <code@dystedium.com> | 2014-02-09 21:13:28 -0800 |
---|---|---|
committer | wil paredes <code@dystedium.com> | 2014-02-09 21:13:28 -0800 |
commit | 6d3473de519ef5d4ebbfd788fce6785905c27c37 (patch) | |
tree | db12193356f9d1df4f7aad72747177c2c523f6f8 /redis/connection.py | |
parent | f490061c37c3684eac708ffc248aa28e9b36dc7d (diff) | |
download | redis-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.py | 2 |
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: |