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

use inspect.getfullargspec instead of inspect.getargspec

parent 343c7b61
......@@ -49,7 +49,7 @@ def _limit_args(allowed_vals):
def decorate(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:
Supports Markdown
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