Skip to content

Commit

Permalink
fix forgettable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
uniphil committed Mar 26, 2013
1 parent 6aa0248 commit cee4c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flask_classy.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ def make_proxy_method(cls, name):
view = getattr(i, name) view = getattr(i, name)


@functools.wraps(view) @functools.wraps(view)
def proxy(**forgetable_view_args): def proxy(**forgettable_view_args):
# Always pass the global request object's view_args, because they # Always use the global request object's view_args, because they
# can be modified by intervening function before an endpoint or # can be modified by intervening function before an endpoint or
# wrapper gets called. This matches Flask's behavior. # wrapper gets called. This matches Flask's behavior.
del forgetable_view_args del forgettable_view_args


if hasattr(i, "before_request"): if hasattr(i, "before_request"):
i.before_request(name, **request.view_args) i.before_request(name, **request.view_args)
Expand Down

0 comments on commit cee4c50

Please sign in to comment.