fix for python3

This commit is contained in:
Marco Gavelli
2018-03-19 20:47:41 +01:00
parent 4fdd145d1e
commit 63ea899605

View File

@@ -11,8 +11,10 @@ from .models import *
try: try:
from urllib.parse import urlencode from urllib.parse import urlencode
basestring = (str, bytes)
except ImportError: except ImportError:
from urllib import urlencode from urllib import urlencode
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
try: try: