mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make mach
work on Python 3.11
This commit is contained in:
parent
6d8358a482
commit
d7be53a70e
1 changed files with 1 additions and 1 deletions
|
@ -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. ' + \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue