diff options
-rw-r--r-- | numpy/lib/index_tricks.py | 4 | ||||
-rw-r--r-- | numpy/linalg/lapack_lite/fortran.py | 4 | ||||
-rw-r--r-- | numpy/ma/core.py | 2 | ||||
-rw-r--r-- | numpy/ma/tests/test_subclassing.py | 2 |
4 files changed, 0 insertions, 12 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 0560bd36d..b4118814d 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -597,8 +597,6 @@ class ndenumerate: def __iter__(self): return self - next = __next__ - @set_module('numpy') class ndindex: @@ -665,8 +663,6 @@ class ndindex: next(self._it) return self._it.multi_index - next = __next__ - # You can do all this with slice() plus a few special objects, # but there's a lot to remember. This version is simpler because diff --git a/numpy/linalg/lapack_lite/fortran.py b/numpy/linalg/lapack_lite/fortran.py index 388c88daa..3aaefb92f 100644 --- a/numpy/linalg/lapack_lite/fortran.py +++ b/numpy/linalg/lapack_lite/fortran.py @@ -44,8 +44,6 @@ class LineIterator: line = line.rstrip() return line - next = __next__ - class PushbackIterator: """PushbackIterator(iterable) @@ -71,8 +69,6 @@ class PushbackIterator: def pushback(self, item): self.buffer.append(item) - next = __next__ - def fortranSourceLines(fo): """Return an iterator over statement lines of a Fortran source file. diff --git a/numpy/ma/core.py b/numpy/ma/core.py index d806747fc..fcd79f5b5 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -2699,8 +2699,6 @@ class MaskedIterator: return masked return d - next = __next__ - class MaskedArray(ndarray): """ diff --git a/numpy/ma/tests/test_subclassing.py b/numpy/ma/tests/test_subclassing.py index 02aeebd17..caa746740 100644 --- a/numpy/ma/tests/test_subclassing.py +++ b/numpy/ma/tests/test_subclassing.py @@ -105,8 +105,6 @@ class CSAIterator: def __next__(self): return next(self._dataiter).__array__().view(type(self._original)) - next = __next__ - class ComplicatedSubArray(SubArray): |