mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
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):
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user