From e47aaaacf15e8f0c7226400541a97238447a7f56 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Wed, 3 Feb 2016 12:52:29 -0800 Subject: [PATCH] Stop nesting functions unnecessarily Change-Id: Iff120d0bac8a075c37bbddcd2bb0fe85145f1749 --- swift/common/utils.py | 6 +----- swift/proxy/controllers/base.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/swift/common/utils.py b/swift/common/utils.py index 72da228f42..a9c96464df 100644 --- a/swift/common/utils.py +++ b/swift/common/utils.py @@ -2682,11 +2682,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):