fix for nonexisting basestring in python3.3

This commit is contained in:
gcetusic
2013-06-27 13:46:11 +02:00
parent 96b53553a0
commit 8db8613181
2 changed files with 3 additions and 0 deletions

View File

@@ -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):

View File

@@ -47,6 +47,7 @@ from .compat import (
urlsplit,
parse_qs,
ClassTypes,
basestring
)
from .http import (
STATUSES,