Skip to content

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.py
index 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, urlunparse
from six.moves.urllib.request import getproxies, proxy_bypass
-from urllib.request import _parse_proxy
from scrapy.exceptions import NotConfigured
from scrapy.utils.httpobj import urlparse_cached