summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2013-11-28 00:53:10 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2013-11-28 01:00:32 +0100
commit0e98050847644f66c6aad38e359d560594a7a4cc (patch)
tree7f97630307db3df80ff1cbd4152ad376e12a6529
parente19506d14ef87b11906de3d3e860470479924617 (diff)
[1.5.x] Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report. Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master.
-rw-r--r--docs/ref/templates/api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index f77455db4e..dd99aad0b8 100644
--- a/docs/ref/templates/api.txt
+++ b/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'