Stop nesting functions unnecessarily
Change-Id: Iff120d0bac8a075c37bbddcd2bb0fe85145f1749
This commit is contained in:
parent
e3f3b52991
commit
e47aaaacf1
@ -2682,11 +2682,7 @@ def public(func):
|
|||||||
:param func: function to make public
|
:param func: function to make public
|
||||||
"""
|
"""
|
||||||
func.publicly_accessible = True
|
func.publicly_accessible = True
|
||||||
|
return func
|
||||||
@functools.wraps(func)
|
|
||||||
def wrapped(*a, **kw):
|
|
||||||
return func(*a, **kw)
|
|
||||||
return wrapped
|
|
||||||
|
|
||||||
|
|
||||||
def quorum_size(n):
|
def quorum_size(n):
|
||||||
|
@ -97,11 +97,7 @@ def delay_denial(func):
|
|||||||
:param func: function for which authorization will be delayed
|
:param func: function for which authorization will be delayed
|
||||||
"""
|
"""
|
||||||
func.delay_denial = True
|
func.delay_denial = True
|
||||||
|
return func
|
||||||
@functools.wraps(func)
|
|
||||||
def wrapped(*a, **kw):
|
|
||||||
return func(*a, **kw)
|
|
||||||
return wrapped
|
|
||||||
|
|
||||||
|
|
||||||
def get_account_memcache_key(account):
|
def get_account_memcache_key(account):
|
||||||
|
Loading…
Reference in New Issue
Block a user