From: Rong Tao <rongtao@cestc.cn>
Date: Tue, 5 Sep 2023 11:41:04 +0000 (+0800)
Subject: binman: Fix SyntaxWarning: invalid escape sequence '\('
X-Git-Tag: v2025.01-rc5-pxa1908~856^2~5
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B?a=commitdiff_plain;h=ba4034a5045cc318874030fdc442cc2e26dba99f;p=u-boot.git

binman: Fix SyntaxWarning: invalid escape sequence '\('

Reproduct warning:

    $ git clean -dfx
    $ make CROSS_COMPILE="" qemu-x86_64_defconfig
    $ make -j8
    ...
    u-boot/tools/binman/etype/section.py:25:
    SyntaxWarning: invalid escape sequence '\('
    """Entry that contains other entries

Signed-off-by: Rong Tao <rongtao@cestc.cn>
---

diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
index fb49e85a76..30c1041c7e 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