Skip to content

Commit

Permalink
six.moves → try-except
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Feb 2, 2024
1 parent 11b8223 commit 7bba730
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scrapy_zyte_smartproxy/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
import warnings
from base64 import urlsafe_b64decode
from collections import defaultdict
try:
from urllib.request import _parse_proxy
except ImportError:
from urllib2 import _parse_proxy

Check warning on line 9 in scrapy_zyte_smartproxy/middleware.py

View check run for this annotation

Codecov / codecov/patch

scrapy_zyte_smartproxy/middleware.py#L8-L9

Added lines #L8 - L9 were not covered by tests

from six.moves.urllib.parse import urlparse, urlunparse
from six.moves.urllib.request import _parse_proxy
from w3lib.http import basic_auth_header
from scrapy import signals
from scrapy.resolver import dnscache
Expand Down

0 comments on commit 7bba730

Please sign in to comment.