diff options
author | Paul Keene <paulkeene4@gmail.com> | 2015-02-09 14:21:39 -0800 |
---|---|---|
committer | Paul Keene <paulkeene4@gmail.com> | 2015-02-09 16:22:53 -0800 |
commit | 904dd00e901473cd15f7e645a1cecdd45de0ffc6 (patch) | |
tree | f1f0677b5a4d76c87a799170aae1dec8e76f550a /redis/_compat.py | |
parent | c4e2f56dbf6e04a23e6a346ac54278cfbf4035e1 (diff) | |
download | redis-py-904dd00e901473cd15f7e645a1cecdd45de0ffc6.tar.gz |
Handle percent-encoded URLs in parsing code
Diffstat (limited to 'redis/_compat.py')
-rw-r--r-- | redis/_compat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/_compat.py b/redis/_compat.py index 38d767d..d2cba98 100644 --- a/redis/_compat.py +++ b/redis/_compat.py @@ -3,6 +3,7 @@ import sys if sys.version_info[0] < 3: + from urllib import unquote from urlparse import parse_qs, urlparse from itertools import imap, izip from string import letters as ascii_letters @@ -38,7 +39,7 @@ if sys.version_info[0] < 3: bytes = str long = long else: - from urllib.parse import parse_qs, urlparse + from urllib.parse import parse_qs, unquote, urlparse from io import BytesIO from string import ascii_letters from queue import Queue |