10 lines
170 B
Python
10 lines
170 B
Python
|
try:
|
||
|
basestring = basestring
|
||
|
except NameError:
|
||
|
basestring = str
|
||
|
|
||
|
try:
|
||
|
from StringIO import StringIO as BytesIO
|
||
|
except ImportError:
|
||
|
from io import BytesIO
|