Commit 1aff432f authored by Tim Schoof's avatar Tim Schoof
Browse files

Merge branch 'fix_stop_iteration' into 'master'

Fix StopIteration error on Python >= 3.7

See merge request !41
parents 593fc3e0 23914af1
Pipeline #24555 passed with stage
in 45 seconds
......@@ -3,7 +3,7 @@ def not_last_n(n, iterator):
if len(iterator) - i > n:
yield element
else:
raise StopIteration()
return
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