Commit 7ddc03f0 authored by Tiago Peixoto's avatar Tiago Peixoto

use inspect.getfullargspec instead of inspect.getargspec

parent 343c7b61
......@@ -49,7 +49,7 @@ def _limit_args(allowed_vals):
def decorate(func):
@_wraps(func)
def wrap(*args, **kwargs):
arg_names = inspect.getargspec(func)[0]
arg_names = inspect.getfullargspec(func)[0]
arguments = list(zip(arg_names, args))
arguments += [(k, kwargs[k]) for k in list(kwargs.keys())]
for a in arguments:
......
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