diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-05-11 18:16:46 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-05-11 18:16:46 -0700 |
commit | 0aab62e422059aa0ad6839509ebde40409d77f35 (patch) | |
tree | 7712f972efc663931bdcacb0c3c86e1e7e5999ab /redis/_compat.py | |
parent | 93ebc7de63833db0b2a3665734993be33b389319 (diff) | |
download | redis-py-0aab62e422059aa0ad6839509ebde40409d77f35.tar.gz |
Cleaned up URL parsing code, now returns ConnectionPool instances.
StrictRedis.from_url() now creations a connection pool instance and
passes that as the connection_pool argument to the client class.
Cleaned up the test suite for URL parsing and BlockingConnectionPool tests
Diffstat (limited to 'redis/_compat.py')
-rw-r--r-- | redis/_compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/_compat.py b/redis/_compat.py index add9c9b..c7859b5 100644 --- a/redis/_compat.py +++ b/redis/_compat.py @@ -3,7 +3,7 @@ import sys if sys.version_info[0] < 3: - from urlparse import urlparse + from urlparse import parse_qs, urlparse from itertools import imap, izip from string import letters as ascii_letters from Queue import Queue @@ -28,7 +28,7 @@ if sys.version_info[0] < 3: bytes = str long = long else: - from urllib.parse import urlparse + from urllib.parse import parse_qs, urlparse from io import BytesIO from string import ascii_letters from queue import Queue |