urlparse for python3

This commit is contained in:
Ricter Z 2016-10-17 21:53:44 +08:00
parent 97b2ba8fd2
commit 795e8b2bb8

View File

@ -18,6 +18,6 @@ def urlparse(url):
try: try:
from urlparse import urlparse from urlparse import urlparse
except ImportError: except ImportError:
from urllib import parse as urlparse from urlparse.parse import urlparse
return urlparse(url) return urlparse(url)