Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

[MRG+1] Update _monkeypatches.py (#3907)

sbs2001783d61d32aba
diff --git a/scrapy/_monkeypatches.py b/scrapy/_monkeypatches.py
index 935c4bfa3..b68099cad 100644
--- a/scrapy/_monkeypatches.py
+++ b/scrapy/_monkeypatches.py
@@ -4,12 +4,7 @@ from six.moves import copyreg
if six.PY2:
from urlparse import urlparse
-
- # workaround for https://bugs.python.org/issue7904 - Python < 2.7
- if urlparse('s3://bucket/key').netloc != 'bucket':
- from urlparse import uses_netloc
- uses_netloc.append('s3')
-
+
# workaround for https://bugs.python.org/issue9374 - Python < 2.7.4
if urlparse('s3://bucket/key?key=value').query != 'key=value':
from urlparse import uses_query