Mercurial > piecrust2
diff piecrust/templating/jinjaengine.py @ 7:343d08ef5668
More PieCrust 3 fixes, and a couple of miscellaneous bug fixes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 16 Aug 2014 15:07:22 -0700 |
parents | 474c9882decf |
children | dc72a288921f |
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py Sat Aug 16 08:15:30 2014 -0700 +++ b/piecrust/templating/jinjaengine.py Sat Aug 16 15:07:22 2014 -0700 @@ -231,7 +231,7 @@ # we only listen to ``'pccache'`` so this will be a name token with # `pccache` as value. We get the line number so that we can give # that line number to the nodes we create by hand. - lineno = parser.stream.next().lineno + lineno = next(parser.stream).lineno # now we parse a single expression that is used as cache key. args = [parser.parse_expression()]