From 3c68223337d82a1a99e5d737214d52b0b6d6dbb7 Mon Sep 17 00:00:00 2001 From: Leon Riesebos Date: Sat, 27 Feb 2021 14:42:51 -0500 Subject: [PATCH] replaced deprecated inspect.getargspec() with inspect.getfullargspec() Signed-off-by: Leon Riesebos --- artiq/language/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)