Commit 3d88f519 authored by Stefan Behnel's avatar Stefan Behnel

go back to using StringIO for test runner in Py2

parent f0e952d3
...@@ -23,7 +23,11 @@ except (ImportError, AttributeError): ...@@ -23,7 +23,11 @@ except (ImportError, AttributeError):
IS_CPYTHON = True IS_CPYTHON = True
IS_PYPY = False IS_PYPY = False
from io import StringIO, open as io_open from io import open as io_open
try:
from StringIO import StringIO
except ImportError:
from io import StringIO # doesn't accept 'str' in Py2
try: try:
import cPickle as pickle import cPickle as pickle
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment