@
six.
wraps
(
wrapped,
assigned=functools.WRAPPER_ASSIGNMENTS,
updated=functools.WRAPPER_UPDATES
)
This is exactly the functools.wraps()
decorator, but it sets the __wrapped__
attribute on what it decorates as functools.wraps()
does on Python versions after 3.2.