From: jenisys Date: Sat, 9 May 2015 16:57:52 +0000 (+0200) Subject: FIX EXAMPLE: X-Git-Tag: 2.8~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3a3022cd242c4ce61d4089d79c018a8ce67cf8;p=thirdparty%2Fjinja.git FIX EXAMPLE: No longer working with current code base since the TokenStream.next() method was removed. --- diff --git a/docs/cache_extension.py b/docs/cache_extension.py index 8fdefb5c..ccdefa2f 100644 --- a/docs/cache_extension.py +++ b/docs/cache_extension.py @@ -20,7 +20,7 @@ class FragmentCacheExtension(Extension): # we only listen to ``'cache'`` so this will be a name token with # `cache` 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()]