Fix Python 2.7 compability
This commit is contained in:
committed by
GitHub
parent
90813c959d
commit
9e8fe7bc1e
@@ -17,7 +17,8 @@ try:
|
|||||||
from urllib.parse import urlencode, parse_qs, urlparse
|
from urllib.parse import urlencode, parse_qs, urlparse
|
||||||
basestring = (str, bytes)
|
basestring = (str, bytes)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urllib import urlencode, parse_qs, urlparse
|
from urllib import urlencode
|
||||||
|
from urlparse import parse_qs, urlparse
|
||||||
basestring = basestring
|
basestring = basestring
|
||||||
|
|
||||||
# Python 2's `input` executes the input, whereas `raw_input` just returns the input
|
# Python 2's `input` executes the input, whereas `raw_input` just returns the input
|
||||||
|
Reference in New Issue
Block a user