[PATCH] binman: Fix SyntaxWarning: invalid escape sequence '\('
Simon Glass
sjg at chromium.org
Mon Sep 4 18:48:47 CEST 2023
Hi Rong,
On Mon, 4 Sept 2023 at 05:00, Rong Tao <rtoax at foxmail.com> wrote:
>
> From: Rong Tao <rongtao at cestc.cn>
>
> Reproduct warning:
>
> $ sudo git clean -dfx
> $ make CROSS_COMPILE="" qemu-x86_64_defconfig
> $ sudo make -j8
I hope you don't need sudo
> ...
> 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
>
Can you please regenerate entries.rst as well? We need to keep that in sync.
Regards,
Simon
More information about the U-Boot
mailing list