summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-06 11:46:39 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-15 08:44:49 -0600
commitc6de09799decbb22bb2d7a44036f53c30356edda (patch)
treecdd392afe5ecd5cc185c45b1387c54712e93ca2c /numpy/core/defchararray.py
parent6c47259eec0ec20c1150c2b29994de59a3158964 (diff)
downloadnumpy-c6de09799decbb22bb2d7a44036f53c30356edda.tar.gz
2to3: Apply next fixer.
The next builtin has been available since Python 2.6 and allows `it.next()` to be replaced by `next(it)`. In Python 3 the `next` method is gone entirely, replaced entirely by the `__next__` method. The next fixer changes all the `it.next()` calls to the new form and renames the `next` methods to `__next__`. In order to keep Numpy code backwards compatible with Python 2, a `next` method was readded to all the Numpy iterators after the fixer was run so they all contain both methods. The presence of the appropriate method could have been made version dependent, but that looked unduly complicated. Closes #3072.
Diffstat (limited to 'numpy/core/defchararray.py')
0 files changed, 0 insertions, 0 deletions