Make mach work on Python 3.11

This commit is contained in:
Andreu Botella 2023-01-03 21:56:55 +01:00
parent 6d8358a482
commit d7be53a70e

View file

@ -112,7 +112,7 @@ def CommandProvider(cls):
isfunc = inspect.ismethod if sys.version_info < (3, 0) else inspect.isfunction
if isfunc(cls.__init__):
spec = inspect.getargspec(cls.__init__)
spec = inspect.getfullargspec(cls.__init__)
if len(spec.args) > 2:
msg = 'Mach @CommandProvider class %s implemented incorrectly. ' + \