Scrapy, a fast high-level web crawling & scraping framework for Python.
Re-arrange the imports in the httpproxy module (#4210)
Grammy Jiang5d8d4bb7d7d9
diff --git a/scrapy/downloadermiddlewares/httpproxy.py b/scrapy/downloadermiddlewares/httpproxy.pyindex 2212d9688..5e4542b6c 100644--- a/scrapy/downloadermiddlewares/httpproxy.py+++ b/scrapy/downloadermiddlewares/httpproxy.py@@ -1,7 +1,8 @@import base64+from urllib.request import _parse_proxy+from six.moves.urllib.parse import unquote, urlunparsefrom six.moves.urllib.request import getproxies, proxy_bypass-from urllib.request import _parse_proxyfrom scrapy.exceptions import NotConfiguredfrom scrapy.utils.httpobj import urlparse_cached