diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2009-02-05 23:13:15 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2009-02-05 23:13:15 +0100 |
commit | ee2d3c43fa2659e32926dfc438e6f281c86ed1a2 (patch) | |
tree | fbbd985c865da85b190b8936b5580716e16870e1 /jinja2/parser.py | |
parent | b3b5802349723ab864cc3531ac9b72a230cb841e (diff) | |
download | jinja2-ee2d3c43fa2659e32926dfc438e6f281c86ed1a2.tar.gz |
Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible.
--HG--
branch : trunk
Diffstat (limited to 'jinja2/parser.py')
-rw-r--r-- | jinja2/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jinja2/parser.py b/jinja2/parser.py index b6e23df..d3eb8c4 100644 --- a/jinja2/parser.py +++ b/jinja2/parser.py @@ -602,7 +602,7 @@ class Parser(object): if len(args) == 1: arg = args[0] else: - arg = nodes.Tuple(args, self.lineno, self.filename) + arg = nodes.Tuple(args, 'load', lineno=token.lineno) return nodes.Getitem(node, arg, 'load', lineno=token.lineno) self.fail('expected subscript expression', self.lineno) |