From 20bf8edcf4efed9405c6148ee070c22c32fbb7ea Mon Sep 17 00:00:00 2001 From: Ron DuPlain Date: Tue, 7 Jun 2011 21:55:07 -0400 Subject: [PATCH] Rename teardown example to avoid confusion. --- docs/reqcontext.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/reqcontext.rst b/docs/reqcontext.rst index 088502eb..832f0e66 100644 --- a/docs/reqcontext.rst +++ b/docs/reqcontext.rst @@ -174,13 +174,14 @@ It's easy to see the behavior from the command line: >>> app = Flask(__name__) >>> @app.teardown_request -... def after_request(exception=None): -... print 'after request' -... +... def teardown_request(exception=None): +... print 'this runs after request' +... >>> ctx = app.test_request_context() >>> ctx.push() >>> ctx.pop() -after request +this runs after request +>>> .. _notes-on-proxies: