projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e249a0
)
Shortcut for the if inner visit for empty branches.
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 25 Oct 2009 12:03:08 +0000
(13:03 +0100)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 25 Oct 2009 12:03:08 +0000
(13:03 +0100)
--HG--
branch : trunk
jinja2/compiler.py
patch
|
blob
|
history
diff --git
a/jinja2/compiler.py
b/jinja2/compiler.py
index 2dd68cdda1e2d2f69f17c8f4d6ae3ed3b9573eae..a6f26a59219558333ef140a3b8f90c6d399474ac 100644
(file)
--- a/
jinja2/compiler.py
+++ b/
jinja2/compiler.py
@@
-278,6
+278,8
@@
class FrameIdentifierVisitor(NodeVisitor):
real_identifiers.declared_parameter
def inner_visit(nodes):
+ if not nodes:
+ return set()
self.identifiers = real_identifiers.copy()
for subnode in nodes:
self.visit(subnode)