1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/py3-firmata/py311.patch
2022-11-24 08:02:40 +01:00

13 lines
471 B
Diff

diff --git a/pyfirmata/pyfirmata.py b/pyfirmata/pyfirmata.py
index 045efc4..06b0c9d 100755
--- a/pyfirmata/pyfirmata.py
+++ b/pyfirmata/pyfirmata.py
@@ -182,7 +182,7 @@ class Board(object):
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):