Fix static type checker error

Error message:
    error: Import "urlparse" could not be resolved
    (reportMissingImports)
This commit is contained in:
Zach Borboa
2023-10-21 19:19:57 -07:00
parent 0921e8391a
commit d6ede93924
2 changed files with 4 additions and 13 deletions
+3 -12
View File
@@ -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):
+1 -1
View File
@@ -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" &&