Merge "Replace deprecated inspect.getargspec"

This commit is contained in:
Zuul 2021-07-20 22:32:29 +00:00 committed by Gerrit Code Review
commit b79ebecbc2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def validate_args(fn, *args, **kwargs):
:param arg: the positional arguments supplied
:param kwargs: the keyword arguments supplied
"""
argspec = inspect.getargspec(fn)
argspec = inspect.getfullargspec(fn)
num_defaults = len(argspec.defaults or [])
required_args = argspec.args[:len(argspec.args) - num_defaults]