minor tweak to python_support
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user