From 7873a1284a58faad0a63232c3a7eee9b7abcf79b Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 29 Jul 2013 03:20:31 +0100 Subject: [PATCH] We want keyword arguments with their defaults in the signature. --- salt/utils/decorators.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/salt/utils/decorators.py b/salt/utils/decorators.py index e508817944..781f19a6c6 100644 --- a/salt/utils/decorators.py +++ b/salt/utils/decorators.py @@ -142,10 +142,7 @@ def identical_signature_wrapper(original_function, wrapped_function): 'def {0}({1}):\n' ' return __wrapped__({1})'.format( original_function.__name__, - inspect.formatargspec( - formatvalue=lambda val: '', - *inspect.getargspec(original_function) - )[1:-1] + inspect.formatargspec(*inspect.getargspec(original_function))[1:-1] ), '', 'exec'