Commit 3c47097d authored by Alex Henrie's avatar Alex Henrie

Use inspect.getfullargspec instead of inspect.getarcspec

parent 5d5f626d
......@@ -52,7 +52,7 @@ else:
also preserves the function's argument signature. This uses eval, and is
thus a bit of a hack, but there no better way I know of to do this."""
def decorate(f):
argspec = inspect.getargspec(func)
argspec = inspect.getfullargspec(func)
___wrap_defaults = defaults = argspec[-1]
if defaults is not None:
def_string = ["___wrap_defaults[%d]" % d for
......
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