Skip to content

Commit 5341b5f

Browse files
committed
[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
1 parent 38612fb commit 5341b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/support/funcutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import inspect
22

33
def requires_self(func):
4-
func_argc = len(inspect.getargspec(func).args)
4+
func_argc = len(inspect.getfullargspec(func).args)
55
if func_argc == 0 or (
66
getattr(
77
func,

0 commit comments

Comments
 (0)