summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-21 15:21:18 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-21 18:44:04 +0200
commita12e0d14eefae4b0f0d0de41205fc6d047b231b3 (patch)
tree598da46f17b0d5a41193fa91db844d65064b036e
parent5cece38e4bd103e2dfbd2cb0c2e0b64256f5f485 (diff)
downloadnumpy-a12e0d14eefae4b0f0d0de41205fc6d047b231b3.tar.gz
REV: 30f8391
This is a Python 2 script, we need to preserve Python 2 compatibility.
-rw-r--r--numpy/linalg/lapack_lite/fortran.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/linalg/lapack_lite/fortran.py b/numpy/linalg/lapack_lite/fortran.py
index 3eb1d14ed..2a5c9c05e 100644
--- a/numpy/linalg/lapack_lite/fortran.py
+++ b/numpy/linalg/lapack_lite/fortran.py
@@ -45,6 +45,8 @@ class LineIterator:
line = line.rstrip()
return line
+ next = __next__
+
class PushbackIterator:
"""PushbackIterator(iterable)
@@ -70,6 +72,8 @@ 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.