[PATCH] D158356: [lit] Use raw strings for backslash escapes to fix SyntaxWarnings
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 20 18:51:36 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7ed0f5b6de74: [lit] Use raw strings for backslash escapes to fix SyntaxWarnings (authored by mgorny).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158356/new/
https://reviews.llvm.org/D158356
Files:
llvm/utils/lit/lit/TestRunner.py
Index: llvm/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/utils/lit/lit/TestRunner.py
+++ llvm/utils/lit/lit/TestRunner.py
@@ -202,7 +202,7 @@
def quote_windows_command(seq):
- """
+ r"""
Reimplement Python's private subprocess.list2cmdline for MSys compatibility
Based on CPython implementation here:
@@ -1563,7 +1563,7 @@
return cond, ln
def tryParseElse(ln):
- match = _caching_re_compile("^\s*%else\s*(%{)?").search(ln)
+ match = _caching_re_compile(r"^\s*%else\s*(%{)?").search(ln)
if not match:
return False, ln
if not match.group(1):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158356.551876.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230821/948f7a06/attachment.bin>
More information about the llvm-commits
mailing list