Skip to content
Myr

Optimize parameter lookup by default

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 01d9e7e · 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
606 unmodified lines
607608 def parameter_is_undeclared(self, target):609 """Checks if a given target is an undeclared parameter."""610 if not self._param_def_block:611 return True611 return False612 return target in self._param_def_block[-1]613614 def push_assign_tracking(self):615 """Pushes a new layer for assignment tracking."""
1004 unmodified lines