Prefer io over cStringIO and StringIO
This commit is contained in:
parent
51d5b2d2c9
commit
fed0d94741
|
@ -131,11 +131,11 @@ except ImportError:
|
|||
PARSER_TYPE_STR = 'string'
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
BytesIO = None
|
||||
from io import StringIO, BytesIO, TextIOWrapper, FileIO
|
||||
except ImportError:
|
||||
try:
|
||||
from io import StringIO, BytesIO, TextIOWrapper, FileIO
|
||||
from cStringIO import StringIO
|
||||
BytesIO = None
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
BytesIO = None
|
||||
|
|
Loading…
Reference in New Issue