diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-13 11:17:54 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-13 11:17:54 -0600 |
commit | 54ca3f28ada715a0c84686f74f3b5a7ba4aa2c95 (patch) | |
tree | 7ea7a1632467f8d6e2917b4982809e02facf2d79 /numpy/lib/_iotools.py | |
parent | 688bc60658b391524c6b641e0a5e5ecd73322d02 (diff) | |
download | numpy-54ca3f28ada715a0c84686f74f3b5a7ba4aa2c95.tar.gz |
2to3: Apply nonzero fixer.
In Python 3 the `__nonzero__` class method is replaced by `__bool__`.
This only affects the MaskedArray class in numpy/oldnumeric/ma.py file
and the simplest solution is to provide both methods. I have my doubts
that the fixed up Python 3 version was correct or even tested, but I
think the current solution should work for as long as oldnumeric stays
in numpy.
Closes #3073.
Diffstat (limited to 'numpy/lib/_iotools.py')
0 files changed, 0 insertions, 0 deletions