forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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