Skip to content
Myr

assignments are traversed in the correct order now

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 8edbe49 · Browse files · 1 file+5 added−0 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:jinja2/compiler.py+5 added
158 unmodified lines
159 def visit_Macro(self, node):160 """Macros set local."""161 self.identifiers.declared_locally.add(node.name)162163 def visit_Assign(self, node):164 """Visit assignments in the correct order."""165 self.visit(node.node)166 self.visit(node.target)167168 # stop traversing at instructions that have their own scope.169 visit_Block = visit_CallBlock = visit_FilterBlock = \170 visit_For = lambda s, n: None171
479 unmodified lines