From 88f9a937ebf20a36cc432a5fe28a6b7f69e8355d Mon Sep 17 00:00:00 2001 From: Bernd Porr Date: Thu, 2 Nov 2023 15:47:10 +0000 Subject: [PATCH] inspect.getargspec is deprecated replaced with getfullargspec as suggested by @mdickers47 in https://github.com/berndporr/pyFirmata2/issues/13 --- pyfirmata2/pyfirmata2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfirmata2/pyfirmata2.py b/pyfirmata2/pyfirmata2.py index ef26864..adabc02 100755 --- a/pyfirmata2/pyfirmata2.py +++ b/pyfirmata2/pyfirmata2.py @@ -230,7 +230,7 @@ def auto_setup(self): def add_cmd_handler(self, cmd, func): """Adds a command handler for a command.""" - len_args = len(inspect.getargspec(func)[0]) + len_args = len(inspect.getfullargspec(func)[0]) def add_meta(f): def decorator(*args, **kwargs):