aboutsummaryrefslogtreecommitdiff
path: root/jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'jinja2')
-rw-r--r--jinja2/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jinja2/compiler.py b/jinja2/compiler.py
index ea720c26..65bffe6c 100644
--- a/jinja2/compiler.py
+++ b/jinja2/compiler.py
@@ -608,7 +608,7 @@ class CodeGenerator(NodeVisitor):
def parameter_is_undeclared(self, target):
"""Checks if a given target is an undeclared parameter."""
if not self._param_def_block:
- return True
+ return False
return target in self._param_def_block[-1]
def push_assign_tracking(self):