break line
This commit is contained in:
parent
fd0862c77d
commit
4c8c503326
1 changed files with 3 additions and 1 deletions
|
|
@ -718,7 +718,9 @@ class Flask(_PackageBoundObject):
|
|||
return f
|
||||
|
||||
def teardown_request(self, f):
|
||||
"""Register a function to be run at the end of each request, regardless of whether there was an exception or not."""
|
||||
"""Register a function to be run at the end of each request,
|
||||
regardless of whether there was an exception or not.
|
||||
"""
|
||||
self.teardown_request_funcs.setdefault(None, []).append(f)
|
||||
return f
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue