[PATCH] Use super() to call parent constructor

Pylint does not see through our dynamic class instantiation.
And super() is more robust against future code change as
we don't need to know the real class that is the parent.

Vincent Legoll
Index: meldapp.py
--- meldapp.py	(revision 1323)
+++ meldapp.py	(working copy)
@@ -434,7 +434,7 @@
     def __init__(self):
-        prefs.Preferences.__init__(self, "/apps/meld", self.defaults)
+        super(MeldPreferences, self).__init__("/apps/meld", self.defaults)
     def get_current_font(self):
         if self.use_custom_font:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]