Skip to content
Commit 830d83ec authored by Caleb Connolly's avatar Caleb Connolly Committed by Tom Rini
Browse files

scripts: gen_compile_commands: fix invalid escape sequence warning



Since Python 3.12 unrecognised escape sequences trigger a SyntaxWarning.
Convert the '\#' string to a raw string so the backslash is correctly
used as a literal.

Ported from Linux commit dae4a0171e25 ("gen_compile_commands: fix invalid
escape sequence warning").

This updates the script to be in-line with Linux 6.9-rc6.

Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: default avatarJoão Marcos Costa <jmcosta944@gmail.com>
parent 4f652182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment