summaryrefslogtreecommitdiff
path: root/kombu/utils/url.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2016-11-11 13:58:59 -0800
committerAsk Solem <ask@celeryproject.org>2016-11-11 13:58:59 -0800
commitbf64bf0c23241bc39ac7757bde7e716c9ed4e577 (patch)
treed90b863ec228f7f81956c2404b334e788166a58b /kombu/utils/url.py
parent6aa0204f10eafc175c36465500ad58cfe72ab38d (diff)
downloadkombu-bf64bf0c23241bc39ac7757bde7e716c9ed4e577.tar.gz
Safe argument to urllib.quote must be bytes on Py2. Closes #645
Diffstat (limited to 'kombu/utils/url.py')
-rw-r--r--kombu/utils/url.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kombu/utils/url.py b/kombu/utils/url.py
index 7842bc28..fbc90a14 100644
--- a/kombu/utils/url.py
+++ b/kombu/utils/url.py
@@ -10,11 +10,11 @@ except ImportError:
from urllib import quote, unquote # noqa
from urlparse import urlparse, parse_qsl # noqa
-from kombu.five import string_t
+from kombu.five import bytes_if_py2, string_t
from .compat import NamedTuple
-safequote = partial(quote, safe='')
+safequote = partial(quote, safe=bytes_if_py2(''))
urlparts = NamedTuple('urlparts', [