Merge "Use six.wraps"

This commit is contained in:
Jenkins
2014-10-25 23:00:11 +00:00
committed by Gerrit Code Review

View File

@@ -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
@@ -287,7 +288,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