tino / pyFirmata

Python interface for the Firmata (http://firmata.org/) protocol. It is compliant with Firmata 2.1. Any help with updating to 2.2 is welcome. The Capability Query is implemented, but the Pin State Query feature not yet.
MIT License
575 stars 193 forks source link

Removing deprecated since Python 3.0 warning #120

Closed harveyf2801 closed 2 years ago

harveyf2801 commented 2 years ago

Removing a warning due to deprecation.

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])