marrow / cinje

A Pythonic and ultra fast template engine DSL.
MIT License
32 stars 0 forks source link

Eliminate use of StopIteration in generators. #28

Closed amcgregor closed 5 years ago

amcgregor commented 5 years ago

Python 3.7 has removed this as an acceptable behaviour, as such, cinje breaks on Python 3.7 as demonstrated after adding 3.7 to the Travis-CI test rig, and exploring explosions locally (which are either hilariously non-existent or egregiously verbose exception chains).

amcgregor commented 5 years ago

d8df370 corrected the issue by armouring calls to Lines.next() in try/except StopIteration: return blocks.