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

Thanks to trac user oubiga for the report.
This commit is contained in:
Baptiste Mispelon 2013-11-28 00:53:10 +01:00
parent a5b94d9d4e
commit 077af42139
1 changed files with 2 additions and 0 deletions

View File

@ -306,10 +306,12 @@ If you ``pop()`` too much, it'll raise
>>> c = Context() >>> c = Context()
>>> c['foo'] = 'first level' >>> c['foo'] = 'first level'
>>> c.push() >>> c.push()
{}
>>> c['foo'] = 'second level' >>> c['foo'] = 'second level'
>>> c['foo'] >>> c['foo']
'second level' 'second level'
>>> c.pop() >>> c.pop()
{'foo': 'second level'}
>>> c['foo'] >>> c['foo']
'first level' 'first level'
>>> c['foo'] = 'overwritten' >>> c['foo'] = 'overwritten'