From d7be53a70e34cfa9c2b4bf0b4eb423af0febfc1f Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Tue, 3 Jan 2023 21:56:55 +0100 Subject: [PATCH] Make `mach` work on Python 3.11 --- python/mach/mach/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mach/mach/decorators.py b/python/mach/mach/decorators.py index 15b8ca58387..be12deb4af4 100644 --- a/python/mach/mach/decorators.py +++ b/python/mach/mach/decorators.py @@ -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. ' + \