Shorten imports

This commit is contained in:
Tino Lange
2019-06-13 17:09:53 +02:00
parent 92a167d00e
commit 59af2acf8e
+2 -4
View File
@@ -30,13 +30,11 @@ import requests
import tempfile import tempfile
if sys.version_info >= (3,): if sys.version_info >= (3,):
from urllib.parse import urlparse from urllib.parse import urlparse, urljoin
from urllib.parse import urljoin
text_type = str text_type = str
binary_type = bytes binary_type = bytes
else: else:
from urlparse import urlparse from urlparse import urlparse, urljoin
from urlparse import urljoin
text_type = unicode text_type = unicode
binary_type = str binary_type = str
input = raw_input input = raw_input