catkin / catkin_tools

Command line tools for working with catkin
Apache License 2.0
163 stars 146 forks source link

Use inspect.getfullargspec where available #733

Closed cottsay closed 2 years ago

cottsay commented 2 years ago

The inspect.getargspec function has been deprecated since Python 3.0, where getfullargspec was introduced to replace it. We still need to support getargspec for Python 2.

This change is needed to support Python 3.11, where inspect.getargspec has been removed.

Fixes #730

cottsay commented 2 years ago

We don't support python 2 anyway

Ah, I forgot that catkin_tools dropped support for Python 2. Updated to use getfullargspec exclusively.