2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-27 04:08:27 +08:00

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): 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)