meld r1337 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1337 - trunk
- Date: Sat, 11 Apr 2009 22:37:41 +0000 (UTC)
Author: vincele
Date: Sat Apr 11 22:37:41 2009
New Revision: 1337
URL: http://svn.gnome.org/viewvc/meld?rev=1337&view=rev
Log:
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.
Modified:
trunk/meldapp.py
Modified: trunk/meldapp.py
==============================================================================
--- trunk/meldapp.py (original)
+++ trunk/meldapp.py Sat Apr 11 22:37:41 2009
@@ -426,7 +426,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]