Skip to content

Commit

Permalink
Removing deprecated since Python 3.0 warning
Browse files Browse the repository at this point in the history
Warning:
pyfirmata/pyfirmata.py:185: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()

len_args = len(inspect.getargspec(func)[0])
  • Loading branch information
harveyf2801 committed Sep 1, 2022
1 parent 9770f5e commit 1f6b116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfirmata/pyfirmata.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,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 1f6b116

Please sign in to comment.