We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25401fd commit efbe75eCopy full SHA for efbe75e
scrapy/utils/url.py
@@ -11,7 +11,7 @@
11
from six.moves.urllib.parse import (ParseResult, urlunparse, urldefrag,
12
urlparse, parse_qsl, urlencode,
13
quote, unquote)
14
-if six.PY3:
+if not six.PY2:
15
from urllib.parse import unquote_to_bytes
16
17
# scrapy.utils.url was moved to w3lib.url and import * ensures this
@@ -157,7 +157,7 @@ def parse_url(http://github.com/url,%20encoding=None):
157
return urlparse(to_unicode(url, encoding))
158
159
160
161
from urllib.parse import _coerce_args, unquote_to_bytes
162
163
def parse_qsl_to_bytes(qs, keep_blank_values=False, strict_parsing=False):
0 commit comments