aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbutil.py
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2024-11-23 16:30:57 -0800
committerDave Lee <davelee.com@gmail.com>2025-01-25 09:58:52 -0800
commitaba0476f23fc2a851792e9d85c25ee34a5ea7ed0 (patch)
tree01d59e84d49647d1d7727dcf43ef2545731d6bdb /lldb/packages/Python/lldbsuite/test/lldbutil.py
parentb178c2d63e0701655046dfd2ead195b36e0df397 (diff)
downloadllvm-aba0476f23fc2a851792e9d85c25ee34a5ea7ed0.zip
llvm-aba0476f23fc2a851792e9d85c25ee34a5ea7ed0.tar.gz
llvm-aba0476f23fc2a851792e9d85c25ee34a5ea7ed0.tar.bz2
[lldb] Delete lldbutil.PrintableRegex (NFC)
Use of this class wasn't making use of the original regex string. Note that `re.Pattern` has a `pattern` property to access the original regex.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbutil.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbutil.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index ef068cf..27e0040 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -1578,21 +1578,6 @@ def set_actions_for_signal(
)
-class PrintableRegex(object):
- def __init__(self, text):
- self.regex = re.compile(text)
- self.text = text
-
- def match(self, str):
- return self.regex.match(str)
-
- def __str__(self):
- return "%s" % (self.text)
-
- def __repr__(self):
- return "re.compile(%s) -> %s" % (self.text, self.regex)
-
-
def skip_if_callable(test, mycallable, reason):
if callable(mycallable):
if mycallable(test):