Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix for py2: also define next
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed May 12, 2019
1 parent 3308c92 commit 031088f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/rings/continued_fraction_gosper.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def __next__(self):
print("ERROR: Next loop iteration ran too many times.")
raise StopIteration

next = __next__ # for python2

def emit(self, q):
"""
Change the state of the iterator, emitting the term `q`.
Expand Down

0 comments on commit 031088f

Please sign in to comment.