fix for nonexisting basestring in python3.3
This commit is contained in:
@@ -35,6 +35,7 @@ if PY3:
|
||||
byte_type = bytes
|
||||
import io
|
||||
StringIO = io.BytesIO
|
||||
basestring = (str, bytes)
|
||||
|
||||
class BaseClass(object):
|
||||
def __repr__(self):
|
||||
@@ -44,6 +45,7 @@ else:
|
||||
byte_type = str
|
||||
import StringIO
|
||||
StringIO = StringIO.StringIO
|
||||
basestring = basestring
|
||||
|
||||
|
||||
class BaseClass(object):
|
||||
|
||||
@@ -47,6 +47,7 @@ from .compat import (
|
||||
urlsplit,
|
||||
parse_qs,
|
||||
ClassTypes,
|
||||
basestring
|
||||
)
|
||||
from .http import (
|
||||
STATUSES,
|
||||
|
||||
Reference in New Issue
Block a user