Use urlparse instead of urllib.parse for python2.7

pull/96/head
Haisenburg 2017-10-08 03:50:19 +08:00
rodzic b18b6f201b
commit 9a7efa3657
1 zmienionych plików z 18 dodań i 15 usunięć

Wyświetl plik

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