From 059640b521035a79d1c13ed2744c98cdef32e0a1 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 14 Jun 2011 03:55:41 +0000 Subject: Generalise pattern for matching IsValid signature Previously the IsValid pattern matched only function signatures of the form: def IsValid(*args): ... However under SWIG 1.3.40 on Linux the signature reads: def IsValid(self): ... The new pattern matches both signature types by matching only up to the left paren. llvm-svn: 132968 --- lldb/scripts/Python/modify-python-lldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/scripts/Python/modify-python-lldb.py') diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index efd4fb6..4d3b861 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -123,7 +123,7 @@ class_pattern = re.compile("^class (SB.*)\(_object\):$") init_pattern = re.compile("^ def __init__\(self, \*args\):") # The pattern for recognizing the beginning of the IsValid method definition. -isvalid_pattern = re.compile("^ def IsValid\(\*args\):") +isvalid_pattern = re.compile("^ def IsValid\(") # These define the states of our finite state machine. NORMAL = 0 -- cgit v1.1