Closed khumba closed 1 month ago
Should all instances of regex use escaped strings? i.e., the CMDLINE_*
lines above the changed lines.
The issue with the ones being changed here seems to be the backslashes. Since the other strings don't have backslashes, Python doesn't think they contain escape sequences, so raw mode isn't really needed. I don't think it would hurt anything, though.
Thanks folks!
Hey,
Debian testing/sid and Gentoo now have Python 3.12 by default. One of the changes in 3.12 is that invalid string escape sequences now produce a SyntaxWarning (and in some future Python this will become an error). There are some invalid escapes in actions.py that cause the user-visible messages below. This PR fixes these two. I don't see warnings for any others in my build log.
Thanks.