[all-commits] [llvm/llvm-project] 777df5: [lldb][NFC] Fix some invalid escapes sequences in ...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Oct 13 07:05:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 777df5c93da893819e9586949531ba9aaec97e1f
      https://github.com/llvm/llvm-project/commit/777df5c93da893819e9586949531ba9aaec97e1f
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M llvm/utils/lit/lit/TestRunner.py
    M llvm/utils/lit/lit/llvm/config.py

  Log Message:
  -----------
  [lldb][NFC] Fix some invalid escapes sequences in Python strings

I recently had to run the test suite with a debug Python which got started
warning about some invalid escape sequences in LLDB's Python code. They all
attempt to add a backslash by doing a single backslash instead of a double
backslash in a normal string. This seems to work fine for now, but Python says
this behaviour is deprecated, so this patch turns all those strings into raw
strings (where a single backslash is actually a single backslash)

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D88289




More information about the All-commits mailing list