SyntaxFix
Write A Post
Hire A Developer
Questions
Install six, the Python 2 and 3 Compatibility Library:
$ sudo -H pip install six
Use it:
from six.moves.urllib.parse import urlparse
(edit: I deleted the other answer)