Commit a802cdcb authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[deprecation] friendlier docstring

parent 9a58a10a
......@@ -30,6 +30,8 @@ def deprecated(instructions):
return func(*args, **kwargs)
if wrapper.__doc__ is None:
wrapper.__doc__ = instructions
return wrapper
return decorator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment