Merge "Replace use of functools.wraps() with six.wraps()"

This commit is contained in:
Zuul 2018-02-06 01:27:41 +00:00 committed by Gerrit Code Review
commit ca710ca692
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ def async_command(command_name, validator=None):
def async_decorator(func):
func.command_name = command_name
@functools.wraps(func)
@six.wraps(func)
def wrapper(self, **command_params):
# Run a validator before passing everything off to async.
# validators should raise exceptions or return silently.
@ -311,7 +311,7 @@ def sync_command(command_name, validator=None):
def sync_decorator(func):
func.command_name = command_name
@functools.wraps(func)
@six.wraps(func)
def wrapper(self, **command_params):
# Run a validator before invoking the function.
# validators should raise exceptions or return silently.