diff options
author | wil paredes <code@dystedium.com> | 2014-02-09 20:59:09 -0800 |
---|---|---|
committer | wil paredes <code@dystedium.com> | 2014-02-09 20:59:09 -0800 |
commit | f490061c37c3684eac708ffc248aa28e9b36dc7d (patch) | |
tree | 9ec9a41569b200e9d86fba85520cd17331b70142 /redis/connection.py | |
parent | 430cb24671934f92deebf095516dcc0b3636631f (diff) | |
download | redis-py-f490061c37c3684eac708ffc248aa28e9b36dc7d.tar.gz |
pep8 fixes
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/redis/connection.py b/redis/connection.py index 4765d42..0469bab 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -61,17 +61,17 @@ def parse_url(url, db=None, **kwargs): except (AttributeError, ValueError): db = 0 url_settings = { - 'host':url.hostname, - 'port':int(url.port or 6379), - 'db':db, - 'password':url.password, + 'host': url.hostname, + 'port': int(url.port or 6379), + 'db': db, + 'password': url.password, } elif url.scheme == 'unix': if db is None: db = 0 url_settings = { - 'unix_socket_path':url.path, - 'db':db, + 'unix_socket_path': url.path, + 'db': db, } else: raise ValueError('only redis:// and unix:// schemes are supported') |