forked from M-Labs/artiq
replaced deprecated inspect.getargspec() with inspect.getfullargspec()
Signed-off-by: Leon Riesebos <leon.riesebos@duke.edu>
This commit is contained in:
parent
cd7f9531d7
commit
3c68223337
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user