summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-10-24 17:05:30 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-10-24 17:07:18 -0700
commit761b26024e12ace10fa92805106cd5a0fbdfd3a6 (patch)
treed1279d5de2c95979a57748f8879fafe3865988a7
parentc6ce62642cae6d4b1961e30827f401a8026058a8 (diff)
downloadoslo-concurrency-761b26024e12ace10fa92805106cd5a0fbdfd3a6.tar.gz
Use six.wraps
There is a slight difference in functools.wraps on python3.x and on python2.x in regards to the __wrapped__ attribute that the six version makes transparent; so instead of using the functools one just use the six one to gain the added compatability. Change-Id: Iccf2aede08504469c148ee5f81f448cadfc08d5e
-rw-r--r--oslo/concurrency/lockutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/oslo/concurrency/lockutils.py b/oslo/concurrency/lockutils.py
index bd08fb1..a5303ff 100644
--- a/oslo/concurrency/lockutils.py
+++ b/oslo/concurrency/lockutils.py
@@ -28,6 +28,7 @@ import weakref
from oslo.config import cfg
from oslo.config import cfgfilter
+import six
from oslo.concurrency._i18n import _, _LE, _LI
from oslo.concurrency.openstack.common import fileutils
@@ -281,7 +282,7 @@ def synchronized(name, lock_file_prefix=None, external=False, lock_path=None):
"""
def wrap(f):
- @functools.wraps(f)
+ @six.wraps(f)
def inner(*args, **kwargs):
t1 = time.time()
t2 = None