[elbe-devel] [PATCH 06/10] elbepack: projectmanager: drop unnecessary constructors

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


The explicit constructors do the same as the implicit ones.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/projectmanager.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index f6fd0266e49e..e8a386d664cc 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -32,8 +32,7 @@ from elbepack.uuid7 import uuid7
 
 
 class ProjectManagerError(Exception):
-    def __init__(self, message):
-        Exception.__init__(self, message)
+    pass
 
 
 class AlreadyOpen(ProjectManagerError):
@@ -54,8 +53,7 @@ class NoOpenProject(ProjectManagerError):
 
 
 class InvalidState(ProjectManagerError):
-    def __init__(self, message):
-        ProjectManagerError.__init__(self, message)
+    pass
 
 
 class OpenProjectFile:

-- 
2.44.0



More information about the elbe-devel mailing list