Skip to content

Commit

Permalink
inspect.getargspec is deprecated
Browse files Browse the repository at this point in the history
replaced with getfullargspec as suggested by
@mdickers47 in berndporr#13
  • Loading branch information
berndporr committed Nov 2, 2023
1 parent d11f5c1 commit 88f9a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfirmata2/pyfirmata2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 88f9a93

Please sign in to comment.