aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/after.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/utility/after.py')
-rw-r--r--wqflask/utility/after.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/wqflask/utility/after.py b/wqflask/utility/after.py
index b628a0a4..2b560e48 100644
--- a/wqflask/utility/after.py
+++ b/wqflask/utility/after.py
@@ -1,5 +1,3 @@
-from __future__ import print_function, division, absolute_import
-
"""
See: http://flask.pocoo.org/docs/patterns/deferredcallbacks/#deferred-callbacks
@@ -9,8 +7,9 @@ from flask import g
from wqflask import app
+
def after_this_request(f):
if not hasattr(g, 'after_request_callbacks'):
g.after_request_callbacks = []
g.after_request_callbacks.append(f)
- return f \ No newline at end of file
+ return f