Skip to content
Myr

Shortcut for the if inner visit for empty branches.

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 6e249a0 · Browse files · 1 file+2 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:jinja2/compiler.py+2 added
276 unmodified lines
277 real_identifiers.declared_locally | \278 real_identifiers.declared_parameter279280 def inner_visit(nodes):281 if not nodes:282 return set()283 self.identifiers = real_identifiers.copy()284 for subnode in nodes:285 self.visit(subnode)286 rv = self.identifiers.declared_locally - old_names
1263 unmodified lines