[PATCH v2] binman: Fix SyntaxWarning: invalid escape sequence '\('
Simon Glass
sjg at chromium.org
Tue Sep 5 20:16:34 CEST 2023
Hi Rong,
On Tue, 5 Sept 2023 at 05:47, Rong Tao <rtoax at foxmail.com> wrote:
>
> From: Rong Tao <rongtao at cestc.cn>
>
> Reproduct warning:
>
> $ git clean -dfx
> $ make CROSS_COMPILE="" qemu-x86_64_defconfig
> $ make -j8
I cannot repro that...what toolchain are you using? Could you send the full
build log?
> ...
> u-boot/tools/binman/etype/section.py:25:
> SyntaxWarning: invalid escape sequence '\('
> """Entry that contains other entries
>
> Signed-off-by: Rong Tao <rongtao at cestc.cn>
> ---
> tools/binman/etype/section.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
> index fb49e85a7634..30c1041c7e8d 100644
> --- a/tools/binman/etype/section.py
> +++ b/tools/binman/etype/section.py
> @@ -40,7 +40,7 @@ class Entry_section(Entry):
> For example code, see etypes which subclass `Entry_section`, or
`cbfs.py`
> for a more involved example::
>
> - $ grep -l \(Entry_section tools/binman/etype/*.py
> + $ grep -l \\(Entry_section tools/binman/etype/*.py
>
> ReadNode()
> Call `super().ReadNode()`, then read any special properties for
the
> --
> 2.41.0
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Regards,
Simon
More information about the U-Boot
mailing list