Fix Python 2.7 compability

This commit is contained in:
Kacper Ziubryniewicz
2018-09-15 11:34:16 +02:00
committed by GitHub
parent 90813c959d
commit 9e8fe7bc1e

View File

@@ -17,7 +17,8 @@ try:
from urllib.parse import urlencode, parse_qs, urlparse
basestring = (str, bytes)
except ImportError:
from urllib import urlencode, parse_qs, urlparse
from urllib import urlencode
from urlparse import parse_qs, urlparse
basestring = basestring
# Python 2's `input` executes the input, whereas `raw_input` just returns the input