Skip to content
Myr

Fixed bug that caused "for item in seq if expr" to fail if the loop is not accessing loop

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent a5204a4 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/compiler.py+1 added-1 removed
811 unmodified lines
812813 # tests in not extended loops become a continue814 if not extended_loop and node.test is not None:815 self.indent()816 self.writeline('if ')816 self.writeline('if not ')817 self.visit(node.test, loop_frame)818 self.write(':')819 self.indent()820 self.writeline('continue')
422 unmodified lines