This patch replaces getargspec with getfullargspec in funcutils.py.
getargspec has been deprecated by python 11x release. This is
important to run LLDB testsuite in Windows/Arm64 platform
where Python native will be available from python release onwards.
Note: getfullargspec is not available in python 2
Reviewed By: labath
Differential Revision: https://reviews.llvm.org/D121786
import inspect
def requires_self(func):
- func_argc = len(inspect.getargspec(func).args)
+ func_argc = len(inspect.getfullargspec(func).args)
if func_argc == 0 or (
getattr(
func,