[Numpy-discussion] StringIO test failure with Python3.1.2

Pauli Virtanen pav at iki.fi
Wed Mar 24 11:30:55 EDT 2010

ke, 2010-03-24 kello 10:28 -0500, Robert Kern kirjoitti:
> utils.py is the only file in there that imports StringIO. It should
> probably do a local import "from io import BytesIO" because io.py
> already contains some Python3-awareness:
> if sys.version_info[0] >= 3:
>     import io
>     BytesIO = io.BytesIO
> else:
>     from cStringIO import StringIO as BytesIO

The lookfor stuff in utils.py deals with docstrings, so it probably has
to use StringIO instead of BytesIO for unicode-cleanliness.


More information about the NumPy-Discussion mailing list