Merge "Replace deprecated inspect.getargspec call" into feature/r1

This commit is contained in:
Zuul
2021-05-31 10:29:50 +00:00
committed by Gerrit Code Review

View File

@@ -362,7 +362,7 @@ def valid_kwargs(*valid_args):
#
@decorator
def func_wrapper(func, *args, **kwargs):
argspec = inspect.getargspec(func)
argspec = inspect.getfullargspec(func)
for k in kwargs:
if k not in argspec.args[1:] and k not in valid_args:
raise TypeError(