Merge "Stop nesting functions unnecessarily"

This commit is contained in:
Jenkins 2016-02-04 15:43:05 +00:00 committed by Gerrit Code Review
commit ab448f2b6d
2 changed files with 2 additions and 10 deletions

View File

@ -2716,11 +2716,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):

View File

@ -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):