Subject: bug#50996: 29.0.50; formatargspec is deprecated since python 3.5

From: Carlos Pita <[email-masked]>
Date: Sun, 3 Oct 2021 14:21:22 -0300

This will do it:

                if hasattr(inspect, 'signature'):
                    args = str(inspect.signature(target))
                else:
                    args = inspect.formatargspec(*argspec_function(target))