aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/mach/mach/decorators.py2
1 files changed, 1 insertions, 1 deletions
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. ' + \