Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed #21515 -- Corrected example of template.Context in docu…

…mentation.

Thanks to trac user oubiga for the report.

Backport of 077af42 from master.
  • Loading branch information...
commit 0e98050847644f66c6aad38e359d560594a7a4cc 1 parent e19506d
@bmispelon bmispelon authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  docs/ref/templates/api.txt
View
2  docs/ref/templates/api.txt
@@ -310,10 +310,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'
Please sign in to comment.
Something went wrong with that request. Please try again.