mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-18 14:27:02 +00:00
Fix static type checker error
Error message:
error: Import "urlparse" could not be resolved
(reportMissingImports)
This commit is contained in:
+3
-12
@@ -1,17 +1,8 @@
|
||||
from itertools import product
|
||||
|
||||
try:
|
||||
from urllib.parse import urljoin
|
||||
except ImportError:
|
||||
from urlparse import urljoin
|
||||
|
||||
try:
|
||||
from urllib.parse import urlparse
|
||||
except ImportError:
|
||||
from urlparse import urlparse
|
||||
|
||||
import csv
|
||||
import posixpath
|
||||
from itertools import product
|
||||
from urllib.parse import urljoin
|
||||
from urllib.parse import urlparse
|
||||
|
||||
|
||||
def remove_dot_segments(url):
|
||||
|
||||
@@ -3,7 +3,7 @@ cd "${SCRIPT_DIR}"
|
||||
|
||||
set -x
|
||||
|
||||
python "generate_urls.py" &&
|
||||
python3 "generate_urls.py" &&
|
||||
([[ -f "urls.csv.gz" ]] && rm --verbose "urls.csv.gz" || exit 0) &&
|
||||
gzip --verbose --best --no-name "urls.csv" &&
|
||||
gzip --verbose --test "urls.csv.gz" &&
|
||||
|
||||
Reference in New Issue
Block a user