Use urlparse instead of urllib.parse for python2.7

This commit is contained in:
Haisenburg 2017-10-08 03:50:19 +08:00
pare b18b6f201b
commit 9a7efa3657

Veure arxiu

@ -16,7 +16,10 @@ import dateutil.parser
import re
import copy
import threading
from urllib.parse import urlparse
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
class Mastodon: