diff --git a/artiq/language/scan.py b/artiq/language/scan.py index e05d7aca8..c174f0344 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -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)