[meld: 1/5] Removed unneeded super arguments
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 1/5] Removed unneeded super arguments
- Date: Thu, 7 Jun 2018 22:43:48 +0000 (UTC)
commit 3c3ad67b2e1e8c043307331ea38783d3236b3b22
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Jun 4 18:50:19 2018 +0200
Removed unneeded super arguments
meld/gutterrendererchunk.py | 4 ++--
meld/matchers/helpers.py | 2 +-
meld/sourceview.py | 2 +-
meld/ui/emblemcellrenderer.py | 2 +-
meld/ui/historyentry.py | 2 +-
meld/ui/msgarea.py | 2 +-
meld/vcview.py | 4 ++--
7 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/meld/gutterrendererchunk.py b/meld/gutterrendererchunk.py
index f6a370ae..27213714 100644
--- a/meld/gutterrendererchunk.py
+++ b/meld/gutterrendererchunk.py
@@ -165,7 +165,7 @@ class GutterRendererChunkAction(
}
def __init__(self, from_pane, to_pane, views, filediff, linediffer):
- super(GutterRendererChunkAction, self).__init__()
+ super().__init__()
self.set_renderer_defaults()
self.from_pane = from_pane
self.to_pane = to_pane
@@ -345,7 +345,7 @@ class GutterRendererChunkLines(
__gtype_name__ = "GutterRendererChunkLines"
def __init__(self, from_pane, to_pane, linediffer):
- super(GutterRendererChunkLines, self).__init__()
+ super().__init__()
self.set_renderer_defaults()
self.from_pane = from_pane
self.to_pane = to_pane
diff --git a/meld/matchers/helpers.py b/meld/matchers/helpers.py
index 02dddfa3..424a30d8 100644
--- a/meld/matchers/helpers.py
+++ b/meld/matchers/helpers.py
@@ -19,7 +19,7 @@ class MatcherWorker(multiprocessing.Process):
matcher_class = myers.InlineMyersSequenceMatcher
def __init__(self, tasks, results):
- super(MatcherWorker, self).__init__()
+ super().__init__()
self.tasks = tasks
self.results = results
self.daemon = True
diff --git a/meld/sourceview.py b/meld/sourceview.py
index 34a78ea0..25d5467b 100644
--- a/meld/sourceview.py
+++ b/meld/sourceview.py
@@ -146,7 +146,7 @@ class MeldSourceView(GtkSource.View):
)
def __init__(self, *args, **kwargs):
- super(MeldSourceView, self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
binding_set = Gtk.binding_set_find('GtkSourceView')
for key, modifiers in self.replaced_entries:
Gtk.binding_entry_remove(binding_set, key, modifiers)
diff --git a/meld/ui/emblemcellrenderer.py b/meld/ui/emblemcellrenderer.py
index 6a00ea1d..6629d459 100644
--- a/meld/ui/emblemcellrenderer.py
+++ b/meld/ui/emblemcellrenderer.py
@@ -43,7 +43,7 @@ class EmblemCellRenderer(Gtk.CellRenderer):
icon_cache = {}
def __init__(self):
- super(EmblemCellRenderer, self).__init__()
+ super().__init__()
self._icon_name = "text-x-generic"
self._emblem_name = None
self._secondary_emblem_name = None
diff --git a/meld/ui/historyentry.py b/meld/ui/historyentry.py
index 1f399ed5..ee340797 100644
--- a/meld/ui/historyentry.py
+++ b/meld/ui/historyentry.py
@@ -73,7 +73,7 @@ class HistoryCombo(Gtk.ComboBox):
)
def __init__(self, **kwargs):
- super(HistoryCombo, self).__init__(**kwargs)
+ super().__init__(**kwargs)
if sys.platform == "win32":
pref_dir = os.path.join(os.getenv("APPDATA"), "Meld")
diff --git a/meld/ui/msgarea.py b/meld/ui/msgarea.py
index 0fca67c3..909b178e 100644
--- a/meld/ui/msgarea.py
+++ b/meld/ui/msgarea.py
@@ -62,7 +62,7 @@ class MsgAreaController(Gtk.HBox):
__gtype_name__ = "MsgAreaController"
def __init__(self):
- super(MsgAreaController, self).__init__()
+ super().__init__()
self.__msgarea = None
self.__msgid = None
diff --git a/meld/vcview.py b/meld/vcview.py
index b18acd1b..e8832a27 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -215,13 +215,13 @@ class VcView(MeldDoc, Component):
pass
def on_container_switch_in_event(self, ui):
- super(VcView, self).on_container_switch_in_event(ui)
+ super().on_container_switch_in_event(ui)
self._set_external_action_sensitivity(True)
self.scheduler.add_task(self.on_treeview_cursor_changed)
def on_container_switch_out_event(self, ui):
self._set_external_action_sensitivity(False)
- super(VcView, self).on_container_switch_out_event(ui)
+ super().on_container_switch_out_event(ui)
def populate_vcs_for_location(self, location):
"""Display VC plugin(s) that can handle the location"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]