AdvancedClimateSystems / uModbus

Python implementation of the Modbus protocol.
Mozilla Public License 2.0
211 stars 82 forks source link

DeprecationWarning: inspect.getargspec() is deprecated #76

Closed afi-lambda closed 4 years ago

afi-lambda commented 4 years ago

When using rtu.send_message() of your lib with Python 3.6.6 and pytest, I have a warning:

...\venv\lib\site-packages\umodbus\functions.py:129: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()

Modifiying line 129 of functions.py from: ...inspect.getargspec(... to: ...inspect.getfullargspec(... remove the warning in my case

Perhaps you could integrate this change in your code

OrangeTux commented 4 years ago

Thanks for your notification!