We want keyword arguments with their defaults in the signature.

This commit is contained in:
Pedro Algarvio 2013-07-29 03:20:31 +01:00
parent 1f83aa6743
commit 7873a1284a

View File

@ -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'