diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-08-15 12:20:11 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-08-15 12:27:02 -0600 |
commit | 871d07987b28f4e7657aef7364f776e30b0c7daa (patch) | |
tree | 9af3ccc3bc997726f32a01df6eb5331c419e6ca2 /numpy/doc/misc.py | |
parent | 3c9c31b19038dbe49c145aa014aa45e0b29b5d4c (diff) | |
download | numpy-871d07987b28f4e7657aef7364f776e30b0c7daa.tar.gz |
BUG: Use io.open instead of open for compatibility.
The recent Python 3 fix adding encoding="utf-8" to the open function
fails on Python 2 because the encoding keyword is not defined. The
solution is to use io.open, which is available for Python 2.6 and 2.7
and is an alias for open when Python >= 3.0. It is reputed to be slow
when running in 2.6, but that should not be a problem.
Diffstat (limited to 'numpy/doc/misc.py')
0 files changed, 0 insertions, 0 deletions