Skip to content

Commit 614ad29

Browse files
committed
Fixed urlparse import for python3
1 parent 2735c9a commit 614ad29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
from urllib.request import FancyURLopener
3434
except ImportError:
3535
from urllib import FancyURLopener
36-
from urlparse import urlparse
36+
try:
37+
from urlparse import urlparse
38+
except ImportError:
39+
from urllib.parse import urlparse
3740

3841
import argparse
3942
from appdirs import user_data_dir

0 commit comments

Comments
 (0)