Skip to content
Myr

fixed error on static subscribe aliasing if the subscription argument was a variable

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 02e0905 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja2/compiler.py+2 added-2 removed
268 unmodified lines
269 """270 self.generic_visit(node)271 if isinstance(node.arg, nodes.Const) and \272 isinstance(node.arg.value, basestring) and \273 (isinstance(node.node, nodes.Name) and273 ((isinstance(node.node, nodes.Name) and274 node.node.name not in (self.identifiers.declared_locally |275 self.identifiers.declared_parameter)) or \276 node.node in self.identifiers.static_subscribes:276 node.node in self.identifiers.static_subscribes):277 if node in self.identifiers.static_subscribes:278 self.identifiers.static_subscribes[node] += 1279 else:280 self.identifiers.static_subscribes[node] = 1
1144 unmodified lines