[all-commits] [llvm/llvm-project] 61353c: [compiler-rt] Fix invalid escape sequences in pyth...

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Mon Oct 28 17:32:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61353cc1f65f02477eedeebcb08e9193cbd53305
      https://github.com/llvm/llvm-project/commit/61353cc1f65f02477eedeebcb08e9193cbd53305
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2024-10-28 (Mon, 28 Oct 2024)

  Changed paths:
    M compiler-rt/lib/asan/scripts/asan_symbolize.py
    M compiler-rt/lib/hwasan/scripts/hwasan_symbolize

  Log Message:
  -----------
  [compiler-rt] Fix invalid escape sequences in python files (#94030)

\d, \( and \) are not valid escape sequences; since python 3.12
they give SyntaxWarning, and will raise SyntaxError in future.
https://docs.python.org/3.12/whatsnew/3.12.html#other-language-changes

r"\(\d\)" and "\\(\\d\\)" are equivalent but the former is the shorter.

Co-authored-by: Eisuke Kawashima <e-kwsm at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list