Fix error on python 2: "ImportError: No module named parse"

This commit is contained in:
Zach Borboa
2018-06-15 22:07:02 -07:00
parent 648ac2c21b
commit 3a6c5997a7
+11 -2
View File
@@ -1,6 +1,15 @@
from itertools import product
from urllib.parse import urljoin
from urllib.parse import urlparse
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