Skip to content
Myr

FIX EXAMPLE:

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

No longer working with current code base since the TokenStream.next() method was removed.

authored by jenisys · committed by jenisys · parent bd93bf3 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/cache_extension.py+1 added-1 removed
18 unmodified lines
19 # the first token is the token that started the tag. In our case20 # we only listen to ``'cache'`` so this will be a name token with21 # `cache` as value. We get the line number so that we can give22 # that line number to the nodes we create by hand.23 lineno = parser.stream.next().lineno23 lineno = next(parser.stream).lineno2425 # now we parse a single expression that is used as cache key.26 args = [parser.parse_expression()]27
29 unmodified lines