[gedit-latex] Use __init__ on the parent instead of using super



commit 26144fec795b51ed487e46ba33cc6de9e7936cc9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jun 29 16:03:59 2011 +0200

    Use __init__ on the parent instead of using super

 latex/bibtex/dialogs.py     |    2 +-
 latex/latex/dialogs.py      |   16 ++++++++--------
 latex/preferences/dialog.py |    4 ++--
 latex/util.py               |    3 +--
 4 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/latex/bibtex/dialogs.py b/latex/bibtex/dialogs.py
index 1400fb5..e902ae1 100644
--- a/latex/bibtex/dialogs.py
+++ b/latex/bibtex/dialogs.py
@@ -35,7 +35,7 @@ class InsertBibTeXEntryDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("insert_bibtex_entry.ui")
 
     def run(self):
diff --git a/latex/latex/dialogs.py b/latex/latex/dialogs.py
index 4c6d308..99baa17 100644
--- a/latex/latex/dialogs.py
+++ b/latex/latex/dialogs.py
@@ -160,7 +160,7 @@ class ChooseMasterDialog(GladeInterface):
     """
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("choose_master_dialog.ui")
 
     def run(self, folder):
@@ -317,7 +317,7 @@ class NewDocumentDialog(GladeInterface):
     dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("new_document_template_dialog.ui")
 
     def get_dialog(self):
@@ -578,7 +578,7 @@ class UseBibliographyDialog(GladeInterface, PreviewRenderer):
     dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("use_bibliography_dialog.ui")
 
     def run_dialog(self, edited_file):
@@ -682,7 +682,7 @@ class InsertGraphicsDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("insert_graphics_dialog.ui")
 
     def run(self, edited_file):
@@ -803,7 +803,7 @@ class InsertTableDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("insert_table_dialog.ui")
 
     def run(self):
@@ -923,7 +923,7 @@ class InsertListingDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("insert_listing_dialog.ui")
 
     def run(self, edited_file):
@@ -1063,7 +1063,7 @@ class BuildImageDialog(GladeInterface):
     _generator = ImageToolGenerator()
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("build_image_dialog.ui")
 
     def run(self):
@@ -1144,7 +1144,7 @@ class SaveAsTemplateDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("save_as_template_dialog.ui")
 
     def get_dialog(self):
diff --git a/latex/preferences/dialog.py b/latex/preferences/dialog.py
index aa9fb34..447b9bc 100644
--- a/latex/preferences/dialog.py
+++ b/latex/preferences/dialog.py
@@ -67,7 +67,7 @@ class ConfigureToolDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self,).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("configure_tool.ui")
 
     def run(self, tool):
@@ -321,7 +321,7 @@ class PreferencesDialog(GladeInterface):
     _dialog = None
 
     def __init__(self):
-        super(GladeInterface, self,).__init__()
+        GladeInterface.__init__(self)
         self.filename = Resources().get_ui_file("configure.ui")
 
     @property
diff --git a/latex/util.py b/latex/util.py
index 63a69f7..fc763ea 100644
--- a/latex/util.py
+++ b/latex/util.py
@@ -176,10 +176,9 @@ class GladeInterface(object):
 
     __log = logging.getLogger("GladeInterface")
 
-    filename = None
-
     def __init__(self):
         self.__tree = None
+        self.filename = None
 
     def __get_tree(self):
         if not self.__tree:



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