Permalink
Browse files

Fixed #21515 -- Corrected example of template.Context in documentation.

Thanks to trac user oubiga for the report.
  • Loading branch information...
1 parent a5b94d9 commit 077af42139db84d88f293ab5eadc989a9169dce1 @bmispelon bmispelon committed Nov 27, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 docs/ref/templates/api.txt
@@ -306,10 +306,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'

0 comments on commit 077af42

Please sign in to comment.