omjavaid created this revision. omjavaid added a reviewer: labath. omjavaid added a project: LLDB. Herald added subscribers: JDevlieghere, kristof.beyls. Herald added a project: All. omjavaid requested review of this revision.
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 https://reviews.llvm.org/D121786 Files: lldb/packages/Python/lldbsuite/support/funcutils.py Index: lldb/packages/Python/lldbsuite/support/funcutils.py =================================================================== --- lldb/packages/Python/lldbsuite/support/funcutils.py +++ lldb/packages/Python/lldbsuite/support/funcutils.py @@ -1,7 +1,7 @@ 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,
Index: lldb/packages/Python/lldbsuite/support/funcutils.py =================================================================== --- lldb/packages/Python/lldbsuite/support/funcutils.py +++ lldb/packages/Python/lldbsuite/support/funcutils.py @@ -1,7 +1,7 @@ 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,
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits