Fixed a bug that caused internal errors if names where used as iteration
variable and regular variable *after* the loop if that variable was unused
*before* the loop. (#331)
--HG--
branch : trunk
diff --git a/jinja2/nodes.py b/jinja2/nodes.py
index 483366b..6383372 100644
--- a/jinja2/nodes.py
+++ b/jinja2/nodes.py
@@ -778,6 +778,11 @@
"""Break a loop."""
+class Scope(Stmt):
+ """An artificial scope."""
+ fields = ('body',)
+
+
# make sure nobody creates custom nodes
def _failing_new(*args, **kwargs):
raise TypeError('can\'t create custom node types')