aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/etype/_testing.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-09 18:39:35 -0600
committerSimon Glass <sjg@chromium.org>2020-07-20 11:37:47 -0600
commit1216448573419fb53f37e31427b29f7ef197deef (patch)
tree3fb9947a85031ca98a12c666d119f168479735be /tools/binman/etype/_testing.py
parent0b9116e31a6807a442f3a2ec887927536ce3aee3 (diff)
downloadu-boot-1216448573419fb53f37e31427b29f7ef197deef.zip
u-boot-1216448573419fb53f37e31427b29f7ef197deef.tar.gz
u-boot-1216448573419fb53f37e31427b29f7ef197deef.tar.bz2
binman: Use super() instead of specifying parent type
It is easier and less error-prone to use super() when the parent type is needed. Update binman to remove the type names. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/etype/_testing.py')
-rw-r--r--tools/binman/etype/_testing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/etype/_testing.py b/tools/binman/etype/_testing.py
index ea60561..0800c25 100644
--- a/tools/binman/etype/_testing.py
+++ b/tools/binman/etype/_testing.py
@@ -41,10 +41,10 @@ class Entry__testing(Entry):
data type (generating an error)
"""
def __init__(self, section, etype, node):
- Entry.__init__(self, section, etype, node)
+ super().__init__(section, etype, node)
def ReadNode(self):
- Entry.ReadNode(self)
+ super().ReadNode()
self.return_invalid_entry = fdt_util.GetBool(self._node,
'return-invalid-entry')
self.return_unknown_contents = fdt_util.GetBool(self._node,