commit | 1965e31075515c6b261a709e08314943b97a9498 | [log] [tgz] |
---|---|---|
author | Armin Ronacher <armin.ronacher@active-4.com> | Sun Oct 25 13:03:08 2009 +0100 |
committer | Armin Ronacher <armin.ronacher@active-4.com> | Sun Oct 25 13:03:08 2009 +0100 |
tree | 61fbcf64af223059327118ab5cbb30ddab391fa5 | |
parent | 6e249a0c09e888aee7785e8918a9baabe31016ff [diff] [blame] |
Shortcut for the if inner visit for empty branches. --HG-- branch : trunk
diff --git a/jinja2/compiler.py b/jinja2/compiler.py index 2dd68cd..a6f26a5 100644 --- a/jinja2/compiler.py +++ b/jinja2/compiler.py
@@ -278,6 +278,8 @@ 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)