]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Drop the underscore in _ReadEntries()
authorSimon Glass <sjg@chromium.org>
Tue, 23 Nov 2021 18:03:45 +0000 (11:03 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 2 Dec 2021 16:16:30 +0000 (09:16 -0700)
This function can be overridden so should not have an underscore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/blob_phase.py
tools/binman/etype/cbfs.py
tools/binman/etype/files.py
tools/binman/etype/section.py

index 54ca54c50c192aec331037002e4000d169dd00ed..ed25e467a13495db3907d3f5f11c061db09771fe 100644 (file)
@@ -48,4 +48,4 @@ class Entry_blob_phase(Entry_section):
             subnode = state.AddSubnode(self._node, name)
 
         # Read entries again, now that we have some
-        self._ReadEntries()
+        self.ReadEntries()
index 44db7b9bb20358859394dcffc8714ab9de4c3eda..0a858b8b84954c523427d4811577c3bf3b64ca60 100644 (file)
@@ -171,7 +171,7 @@ class Entry_cbfs(Entry):
         self._cbfs_arg = fdt_util.GetString(node, 'cbfs-arch', 'x86')
         self.align_default = None
         self._cbfs_entries = OrderedDict()
-        self._ReadSubnodes()
+        self.ReadEntries()
         self.reader = None
 
     def ObtainContents(self, skip=None):
@@ -204,7 +204,7 @@ class Entry_cbfs(Entry):
         self.SetContents(data)
         return True
 
-    def _ReadSubnodes(self):
+    def ReadEntries(self):
         """Read the subnodes to find out what should go in this CBFS"""
         for node in self._node.subnodes:
             entry = Entry.Create(self, node)
index 9b04a496a85189fa99df3b29b315568e46a76b2e..927d0f071df8b2c024c649b822c01eba045b765c 100644 (file)
@@ -64,4 +64,4 @@ class Entry_files(Entry_section):
                 state.AddInt(subnode, 'align', self._files_align)
 
         # Read entries again, now that we have some
-        self._ReadEntries()
+        self.ReadEntries()
index e2949fc9163fe4b89dc38e44f31b6a24871d38a9..281a228cd0e3805fb5f03cc9a2522c866c927e75 100644 (file)
@@ -85,9 +85,9 @@ class Entry_section(Entry):
         if filename:
             self._filename = filename
 
-        self._ReadEntries()
+        self.ReadEntries()
 
-    def _ReadEntries(self):
+    def ReadEntries(self):
         for node in self._node.subnodes:
             if node.name.startswith('hash') or node.name.startswith('signature'):
                 continue
@@ -741,5 +741,5 @@ class Entry_section(Entry):
             missing: List of missing properties / entry args, each a string
         """
         if not self._ignore_missing:
-            entry.Raise('Missing required properties/entry args: %s' %
-                       (', '.join(missing)))
+            missing = ', '.join(missing)
+            entry.Raise(f'Missing required properties/entry args: {missing}')