Prefer io over cStringIO and StringIO

This commit is contained in:
Matt Martz 2017-04-10 19:43:46 -05:00
parent 1642d0669f
commit 9806e401e0
1 changed files with 3 additions and 3 deletions

View File

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