mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-02 13:48:47 +00:00
Fix error on python 2: "ImportError: No module named parse"
This commit is contained in:
+11
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user