minor tweak to python_support

This commit is contained in:
Stefan Wojcik 2016-12-06 23:09:55 -05:00
parent 1b36ca00e5
commit 0fc44efbcc

View File

@ -22,6 +22,8 @@ StringIO = six.BytesIO
# Additionally for Py2, try to use the faster cStringIO, if available # Additionally for Py2, try to use the faster cStringIO, if available
if not PY3: if not PY3:
try: try:
from cStringIO import StringIO import cStringIO
except ImportError: except ImportError:
pass pass
else:
StringIO = cStringIO.StringIO