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 7bbeadb commit c065f2cCopy full SHA for c065f2c
scrapy/xlib/urlparse_monkeypatches.py
@@ -1,7 +1,11 @@
1
-from urlparse import urlparse, uses_netloc, uses_query
+from urlparse import urlparse
2
3
-# workaround for http://bugs.python.org/issue7904
+# workaround for http://bugs.python.org/issue7904 - Python < 2.7
4
if urlparse('s3://bucket/key').netloc != 'bucket':
5
+ from urlparse import uses_netloc
6
uses_netloc.append('s3')
7
+
8
+# workaround for http://bugs.python.org/issue9374 - Python < 2.7.4
9
if urlparse('s3://bucket/key?key=value').query != 'key=value':
10
+ from urlparse import uses_query
11
uses_query.append('s3')
0 commit comments