Skip to content
This repository

Update docs/patterns/deferredcallbacks.rst #665

Merged
merged 1 commit into from over 1 year ago

2 participants

Trung Ly Kenneth Reitz
Trung Ly

Fix example code in Deferred Callback docs: don't set response upon executing callback

To fix this issue: #664

Trung Ly trungly Update docs/patterns/deferredcallbacks.rst
fix example code in Deferred Callback docs: don't set response upon executing callback
b4fc441
Kenneth Reitz
Collaborator

why not :)

Kenneth Reitz kennethreitz merged commit 1e14783 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 14, 2013
Trung Ly trungly Update docs/patterns/deferredcallbacks.rst
fix example code in Deferred Callback docs: don't set response upon executing callback
b4fc441
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  docs/patterns/deferredcallbacks.rst
2  docs/patterns/deferredcallbacks.rst
Source Rendered
@@ -49,7 +49,7 @@ this the following function needs to be registered as
49 49 @app.after_request
50 50 def call_after_request_callbacks(response):
51 51 for callback in getattr(g, 'after_request_callbacks', ()):
52   - response = callback(response)
  52 + callback(response)
53 53 return response
54 54
55 55

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.