Commit 02f9e90f authored by Baptiste Mispelon's avatar Baptiste Mispelon
Browse files

[1.6.x] Fixed #21515 -- Corrected example of template.Context in documentation.

Thanks to trac user oubiga for the report.

Backport of 077af421 from master.
parent 655b8bb1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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'