[elbe-devel] [PATCH 04/25] pylint: config: call baseclass.__init__() in Config.__init__()

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 10:42:05 CEST 2018


pylint complains:
elbepack/config.py:12: [W0231(super-init-not-called), Config.__init__] __init__ method from base class 'dict' is not called

fix it by calling dict.__init__(self)

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/config.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/config.py b/elbepack/config.py
index 3bc9254b..4c485822 100644
--- a/elbepack/config.py
+++ b/elbepack/config.py
@@ -10,6 +10,7 @@ import os
 
 class Config(dict):
     def __init__(self):
+        dict.__init__(self)
         self['soaphost'] = "localhost"
         self['soapport'] = "7587"
         self['elbeuser'] = "root"
-- 
2.11.0




More information about the elbe-devel mailing list