From 02f9e90fdfe795992d674094fe25919bb885bf0d Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Thu, 28 Nov 2013 00:53:10 +0100 Subject: [PATCH] [1.6.x] Fixed #21515 -- Corrected example of template.Context in documentation. Thanks to trac user oubiga for the report. Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master. --- docs/ref/templates/api.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 669016ae00801..acaf0e75e5bf1 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -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'