mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
We want keyword arguments with their defaults in the signature.
This commit is contained in:
parent
1f83aa6743
commit
7873a1284a
@ -142,10 +142,7 @@ def identical_signature_wrapper(original_function, wrapped_function):
|
|||||||
'def {0}({1}):\n'
|
'def {0}({1}):\n'
|
||||||
' return __wrapped__({1})'.format(
|
' return __wrapped__({1})'.format(
|
||||||
original_function.__name__,
|
original_function.__name__,
|
||||||
inspect.formatargspec(
|
inspect.formatargspec(*inspect.getargspec(original_function))[1:-1]
|
||||||
formatvalue=lambda val: '',
|
|
||||||
*inspect.getargspec(original_function)
|
|
||||||
)[1:-1]
|
|
||||||
),
|
),
|
||||||
'<string>',
|
'<string>',
|
||||||
'exec'
|
'exec'
|
||||||
|
Loading…
Reference in New Issue
Block a user