[Lldb-commits] [lldb] 7ae32bf - [lldb] Fixed SyntaxWarning invalid escape sequence '\s' in decorators.py (#90607)

via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 30 06:38:51 PDT 2024


Author: Dmitry Vasilyev
Date: 2024-04-30T14:38:46+01:00
New Revision: 7ae32bf7581e03d92c78346a72ea20798520b978

URL: https://github.com/llvm/llvm-project/commit/7ae32bf7581e03d92c78346a72ea20798520b978
DIFF: https://github.com/llvm/llvm-project/commit/7ae32bf7581e03d92c78346a72ea20798520b978.diff

LOG: [lldb] Fixed SyntaxWarning invalid escape sequence '\s' in decorators.py (#90607)

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/decorators.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 7fb88cef165356..79cc0a2aeacbeb 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -1098,7 +1098,7 @@ def is_feature_enabled():
                 ).decode("utf-8")
                 # If 'feature: 1' was output, then this feature is available and
                 # the test should not be skipped.
-                if re.match("%s: 1\s*" % feature, output):
+                if re.match(r"%s: 1\s*" % feature, output):
                     return None
                 else:
                     return "%s is not supported on this system." % feature


        


More information about the lldb-commits mailing list