]> git.dujemihanovic.xyz Git - u-boot.git/commit
scripts: gen_compile_commands: fix invalid escape sequence warning
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 3 May 2024 15:18:36 +0000 (17:18 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 13 May 2024 22:51:14 +0000 (16:51 -0600)
commit830d83ec385ddf9eeb541027ef09453657deed56
treed09c0b561f5550eccbd574941304f79c85d9120e
parent4f652182a0777085eb9022648c33c5fd8356a0de
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: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: João Marcos Costa <jmcosta944@gmail.com>
scripts/gen_compile_commands.py