Author: Muhammad Omair Javaid Date: 2022-04-21T01:33:26+05:00 New Revision: 5341b5f8d3cec9a38867bc4745fd680946300b87
URL: https://github.com/llvm/llvm-project/commit/5341b5f8d3cec9a38867bc4745fd680946300b87 DIFF: https://github.com/llvm/llvm-project/commit/5341b5f8d3cec9a38867bc4745fd680946300b87.diff LOG: [LLDB] Update inspect getargspec to getfullargspec 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 Added: Modified: lldb/packages/Python/lldbsuite/support/funcutils.py Removed: ################################################################################ diff --git a/lldb/packages/Python/lldbsuite/support/funcutils.py b/lldb/packages/Python/lldbsuite/support/funcutils.py index 648d95d23d970..af5da0061e1ca 100644 --- a/lldb/packages/Python/lldbsuite/support/funcutils.py +++ b/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