This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFC] Fix some invalid escapes sequences in Python strings
ClosedPublic

Authored by teemperor on Sep 25 2020, 3:01 AM.

Details

Summary

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)

Diff Detail

Event Timeline

teemperor created this revision.Sep 25 2020, 3:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 25 2020, 3:01 AM
teemperor requested review of this revision.Sep 25 2020, 3:01 AM
JDevlieghere accepted this revision.Sep 25 2020, 8:22 AM
This revision is now accepted and ready to land.Sep 25 2020, 8:22 AM