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