[PATCH] Use super() to call parent constructor
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list <meld-list gnome org>
- Subject: [PATCH] Use super() to call parent constructor
- Date: Sat, 4 Apr 2009 16:58:26 +0200
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]