diff --git a/swift/common/utils.py b/swift/common/utils.py index bcbeeb8b1f..2037872041 100644 --- a/swift/common/utils.py +++ b/swift/common/utils.py @@ -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): diff --git a/swift/proxy/controllers/base.py b/swift/proxy/controllers/base.py index a2de4b0969..d98a7d5922 100644 --- a/swift/proxy/controllers/base.py +++ b/swift/proxy/controllers/base.py @@ -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):