Commit 23914af1 authored by Tim Schoof's avatar Tim Schoof
Browse files

Fix StopIteration error on Python >= 3.7

parent 593fc3e0
Pipeline #24554 passed with stage
in 44 seconds
......@@ -3,7 +3,7 @@ def not_last_n(n, iterator):
if len(iterator) - i > n:
yield element
raise StopIteration()
def format_error(err):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment