[pygobject/pygobject-3-36] Python 2 compat



commit 1c83fd4c066b87c9779796bcf980dc1f5f3634c8
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Fri Apr 17 13:39:00 2020 +0200

    Python 2 compat

 tests/test_gtk_template.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_gtk_template.py b/tests/test_gtk_template.py
index 338d1029..db3c8d98 100644
--- a/tests/test_gtk_template.py
+++ b/tests/test_gtk_template.py
@@ -605,7 +605,7 @@ def test_template_hierarchy():
         __gtype_name__ = "TestLabel"
 
         def __init__(self):
-            super().__init__()
+            super(TestLabel, self).__init__()
             self.props.label = "TestLabel"
 
     testbox = """
@@ -625,7 +625,7 @@ def test_template_hierarchy():
         _testlabel = Gtk.Template.Child()
 
         def __init__(self):
-            super().__init__()
+            super(TestBox, self).__init__()
 
             assert isinstance(self._testlabel, TestLabel)
 
@@ -652,7 +652,7 @@ def test_template_hierarchy():
         _testlabel = Gtk.Template.Child()
 
         def __init__(self):
-            super().__init__()
+            super(MyWindow, self).__init__()
 
             assert isinstance(self._testbox, TestBox)
             assert isinstance(self._testlabel, TestLabel)
@@ -680,7 +680,7 @@ def test_multiple_init_template_calls():
         _label = Gtk.Template.Child()
 
         def __init__(self):
-            super().__init__()
+            super(MyBox, self).__init__()
             self._label.props.label = "awesome label"
 
     my_box = MyBox()


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