urlparse for python3

This commit is contained in:
Ricter Z 2016-10-17 21:52:06 +08:00
parent 6858bacd41
commit 97b2ba8fd2

View File

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