Rename wraper to wrapper

Change-Id: I279cdab9583112555b965c6c3108e6b199264a45
Closes-Bug: #1489835
This commit is contained in:
Hua Wang 2015-08-21 07:25:18 +08:00
parent 8719df3b99
commit 6ed85f7f6b
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def enforce_wsgi(api_name, act=None):
def delete(self, bay_ident): def delete(self, bay_ident):
... ...
""" """
def wraper(fn): def wrapper(fn):
action = "%s:%s" % (api_name, (act or fn.__name__)) action = "%s:%s" % (api_name, (act or fn.__name__))
@functools.wraps(fn) @functools.wraps(fn)
@ -116,4 +116,4 @@ def enforce_wsgi(api_name, act=None):
enforce(pecan.request.context, action, None) enforce(pecan.request.context, action, None)
return fn(self, *args, **kwargs) return fn(self, *args, **kwargs)
return handle return handle
return wraper return wrapper