Closed LuminousXLB closed 1 week ago
I see there's noqa: W605 to suppress the complaint "Invalid escape sequence" from linter, but this is becoming a SyntaxWarning from Python 3.12 (ref).
noqa: W605
https://github.com/OP-TEE/optee_os/blob/956c2d50d60109a6053e14da6ff97d6243ea5d65/scripts/gen_compile_commands.py#L176-L180
I'd propose we properly escape the back slash by changing it to
command_prefix.replace(r'\#', '#')
Hi @LuminousXLB, your are probably right. Would you mind creating a pull request?
Yes @jforissier , I've opened a PR on this.
I see there's
noqa: W605
to suppress the complaint "Invalid escape sequence" from linter, but this is becoming a SyntaxWarning from Python 3.12 (ref).https://github.com/OP-TEE/optee_os/blob/956c2d50d60109a6053e14da6ff97d6243ea5d65/scripts/gen_compile_commands.py#L176-L180
I'd propose we properly escape the back slash by changing it to