urlparse for python3(再犯错我直播吃屎)

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

View File

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