diff options
author | Dave Lee <davelee.com@gmail.com> | 2024-11-23 16:30:57 -0800 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2025-01-25 09:58:52 -0800 |
commit | aba0476f23fc2a851792e9d85c25ee34a5ea7ed0 (patch) | |
tree | 01d59e84d49647d1d7727dcf43ef2545731d6bdb /lldb/packages/Python/lldbsuite/test/lldbutil.py | |
parent | b178c2d63e0701655046dfd2ead195b36e0df397 (diff) | |
download | llvm-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.py | 15 |
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): |