[clang] [compiler-rt] [libcxx] [lld] [lldb] [llvm] [mlir] [polly] python: use raw strings for regex (PR #105990)
Paul Zander via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 09:17:05 PDT 2024
================
@@ -284,7 +284,7 @@ def sync_csv(rows: List[Tuple], from_github: List[PaperInfo]) -> List[Tuple]:
results.append(gh.for_printing())
continue
elif paper.status != gh.status:
- print(f"We found a CSV row and a Github issue with different statuses:\nrow: {row}\Github issue: {gh}")
+ print(rf"We found a CSV row and a Github issue with different statuses:\nrow: {row}\Github issue: {gh}")
----------------
negril wrote:
See https://docs.python.org/3/reference/lexical_analysis.html#escape-sequences. The `\n` and `\G` are interpreted as an escape sequence. Hence necessitates the change.
https://github.com/llvm/llvm-project/pull/105990
More information about the cfe-commits
mailing list