replaced deprecated inspect.getargspec() with inspect.getfullargspec()

Signed-off-by: Leon Riesebos <leon.riesebos@duke.edu>
This commit is contained in:
Leon Riesebos 2021-02-27 14:42:51 -05:00 committed by Sébastien Bourdeauducq
parent cd7f9531d7
commit 3c68223337

View File

@ -220,7 +220,7 @@ class Scannable:
def process(self, x):
cls = _ty_to_scan[x["ty"]]
args = dict()
for arg in inspect.getargspec(cls).args[1:]:
for arg in inspect.getfullargspec(cls).args[1:]:
if arg in x:
args[arg] = x[arg]
return cls(**args)