[elbe-devel] [PATCH 07/10] elbepack: pbuilderaction: drop unnecessary constructors

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Apr 22 18:37:28 CEST 2024


The explicit constructors do the same as the implicit ones.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/pbuilderaction.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 56f5c5c5ba28..7bc60afaafcd 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -27,8 +27,7 @@ def ensure_outdir(opt):
 
 
 class PBuilderError(Exception):
-    def __init__(self, msg):
-        Exception.__init__(self, msg)
+    pass
 
 
 class PBuilderAction:
@@ -59,9 +58,6 @@ class CreateAction(PBuilderAction):
 
     tag = 'create'
 
-    def __init__(self, node):
-        PBuilderAction.__init__(self, node)
-
     def execute(self, opt, _args):
         crossopt = []
         if opt.cross:
@@ -139,9 +135,6 @@ class UpdateAction(PBuilderAction):
 
     tag = 'update'
 
-    def __init__(self, node):
-        PBuilderAction.__init__(self, node)
-
     def execute(self, opt, _args):
 
         if not opt.project:
@@ -171,9 +164,6 @@ class BuildAction(PBuilderAction):
 
     tag = 'build'
 
-    def __init__(self, node):
-        PBuilderAction.__init__(self, node)
-
     def execute(self, opt, _args):
 
         crossopt = []

-- 
2.44.0



More information about the elbe-devel mailing list