Replace deprecated inspect.getargspec with inspect.getfullargspec

Python 3.11 removes inspect.getargspec completely.
This commit is contained in:
Dpeta 2023-05-04 20:08:33 +02:00
parent 4ab60c857d
commit 97fe88989c
No known key found for this signature in database
GPG key ID: 51227517CEA0030C

View file

@ -107,7 +107,7 @@ class ToastMachine:
for k, v in self.machine.types.items():
if self.machine.type == k:
try:
args = inspect.getargspec(v.__init__).args
args = inspect.getfullargspec(v.__init__).args
except:
args = []
@ -133,7 +133,7 @@ class ToastMachine:
if "default" in self.machine.types:
if (
"parent"
in inspect.getargspec(
in inspect.getfullargspec(
self.machine.types["default"].__init__
).args
):