Skip to content
Myr

Merge pull request #450 from jenisys/fixdoc.extension_example

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

FIX DOC-EXAMPLE: cache_extension.py

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 676fd8c, fa3a302 · 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