[elbe-devel] [PATCH 05/10] elbepack: soapclient: drop unnecessary constructors

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


The explicit constructors do the same as the implicit ones.

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

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 25d1caf19f08..5975148d722a 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -160,9 +160,6 @@ class RemoveLogAction(ClientAction):
 
     tag = 'rm_log'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print('usage: elbe control rm_log <project_dir>', file=sys.stderr)
@@ -179,9 +176,6 @@ class ListProjectsAction(ClientAction):
 
     tag = 'list_projects'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, _args):
         projects = client.service.list_projects()
 
@@ -201,9 +195,6 @@ class ListUsersAction(ClientAction):
 
     tag = 'list_users'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, _args):
         users = client.service.list_users()
 
@@ -217,9 +208,6 @@ ClientAction.register(ListUsersAction)
 class AddUserAction(ClientAction):
     tag = 'add_user'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 4:
             print(
@@ -252,9 +240,6 @@ class CreateProjectAction(ClientAction):
 
     tag = 'create_project'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, _args):
 
         uuid = client.service.new_project()
@@ -268,9 +253,6 @@ class ResetProjectAction(ClientAction):
 
     tag = 'reset_project'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -289,9 +271,6 @@ class DeleteProjectAction(ClientAction):
 
     tag = 'del_project'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -310,9 +289,6 @@ class SetXmlAction(ClientAction):
 
     tag = 'set_xml'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 2:
             print(
@@ -373,9 +349,6 @@ class BuildAction(ClientAction):
 
     tag = 'build'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
         if len(args) != 1:
             print('usage: elbe control build <project_dir>', file=sys.stderr)
@@ -393,9 +366,6 @@ class BuildSysrootAction(ClientAction):
 
     tag = 'build_sysroot'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -414,9 +384,6 @@ class BuildSDKAction(ClientAction):
 
     tag = 'build_sdk'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -435,9 +402,6 @@ class BuildCDROMsAction(ClientAction):
 
     tag = 'build_cdroms'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
         if len(args) != 1:
             print(
@@ -462,9 +426,6 @@ class GetFileAction(ClientAction):
 
     tag = 'get_file'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
         if len(args) != 2:
             print(
@@ -493,9 +454,6 @@ class BuildChrootAction(ClientAction):
 
     tag = 'build_chroot_tarball'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -515,9 +473,6 @@ class DumpFileAction(ClientAction):
 
     tag = 'dump_file'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 2:
             print(
@@ -548,9 +503,6 @@ class GetFilesAction(ClientAction):
 
     tag = 'get_files'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
         if len(args) != 1:
             print(
@@ -595,9 +547,6 @@ class WaitProjectBusyAction(ClientAction):
 
     tag = 'wait_busy'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -649,9 +598,6 @@ class SetCdromAction(ClientAction):
 
     tag = 'set_cdrom'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
 
         if len(args) != 2:
@@ -675,9 +621,6 @@ class SetOrigAction(ClientAction):
 
     tag = 'set_orig'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
 
         if len(args) != 2:
@@ -701,9 +644,6 @@ class ShutdownInitvmAction(ClientAction):
 
     tag = 'shutdown_initvm'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if args:
             print('usage: elbe control shutdown_initvm', file=sys.stderr)
@@ -723,9 +663,6 @@ class SetPdebuilderAction(ClientAction):
 
     tag = 'set_pdebuild'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
 
         if len(args) != 2 and len(args) != 3:
@@ -749,9 +686,6 @@ class BuildPbuilderAction(ClientAction):
 
     tag = 'build_pbuilder'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, opt, args):
         if len(args) != 1:
             print(
@@ -771,9 +705,6 @@ class UpdatePbuilderAction(ClientAction):
 
     tag = 'update_pbuilder'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -792,9 +723,6 @@ class InstallElbeVersion(ClientAction):
 
     tag = 'install_elbe_version'
 
-    def __init__(self, node):
-        ClientAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) > 1:
             print(
@@ -846,9 +774,6 @@ class ListPackagesAction(RepoAction):
 
     tag = 'list_packages'
 
-    def __init__(self, node):
-        RepoAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print(
@@ -867,9 +792,6 @@ class DownloadAction(RepoAction):
 
     tag = 'download'
 
-    def __init__(self, node):
-        RepoAction.__init__(self, node)
-
     def execute(self, client, _opt, args):
         if len(args) != 1:
             print('usage: elbe prjrepo download <project_dir>',
@@ -897,9 +819,6 @@ class UploadPackageAction(RepoAction):
 
     tag = 'upload_pkg'
 
-    def __init__(self, node):
-        RepoAction.__init__(self, node)
-
     @staticmethod
     def upload_file(client, f, builddir):
         # Uploads file f into builddir in intivm

-- 
2.44.0



More information about the elbe-devel mailing list