Skip to content

Commit a12e0d1

Browse files
REV: 30f8391
This is a Python 2 script, we need to preserve Python 2 compatibility.
1 parent 5cece38 commit a12e0d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

numpy/linalg/lapack_lite/fortran.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def __next__(self):
4545
line = line.rstrip()
4646
return line
4747

48+
next = __next__
49+
4850

4951
class PushbackIterator:
5052
"""PushbackIterator(iterable)
@@ -70,6 +72,8 @@ def __next__(self):
7072
def pushback(self, item):
7173
self.buffer.append(item)
7274

75+
next = __next__
76+
7377

7478
def fortranSourceLines(fo):
7579
"""Return an iterator over statement lines of a Fortran source file.

0 commit comments

Comments
 (0)