summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_regression.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-13 11:17:54 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-13 11:17:54 -0600
commit54ca3f28ada715a0c84686f74f3b5a7ba4aa2c95 (patch)
tree7ea7a1632467f8d6e2917b4982809e02facf2d79 /numpy/lib/tests/test_regression.py
parent688bc60658b391524c6b641e0a5e5ecd73322d02 (diff)
downloadnumpy-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/tests/test_regression.py')
0 files changed, 0 insertions, 0 deletions