fix for python3
This commit is contained in:
@@ -11,8 +11,10 @@ from .models import *
|
||||
|
||||
try:
|
||||
from urllib.parse import urlencode
|
||||
basestring = (str, bytes)
|
||||
except ImportError:
|
||||
from urllib import urlencode
|
||||
basestring = basestring
|
||||
|
||||
# Python 2's `input` executes the input, whereas `raw_input` just returns the input
|
||||
try:
|
||||
|
Reference in New Issue
Block a user