Skip to content

Commit

Permalink
[1.6.x] Fixed #21515 -- Corrected example of template.Context in docu…
Browse files Browse the repository at this point in the history
…mentation.

Thanks to trac user oubiga for the report.

Backport of 077af42 from master.
  • Loading branch information
bmispelon committed Nov 27, 2013
1 parent 655b8bb commit 02f9e90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ref/templates/api.txt
Expand Up @@ -311,10 +311,12 @@ If you ``pop()`` too much, it'll raise
>>> c = Context()
>>> c['foo'] = 'first level'
>>> c.push()
{}
>>> c['foo'] = 'second level'
>>> c['foo']
'second level'
>>> c.pop()
{'foo': 'second level'}
>>> c['foo']
'first level'
>>> c['foo'] = 'overwritten'
Expand Down

0 comments on commit 02f9e90

Please sign in to comment.