From 1ec4d298984d90672354e7864e35af4100285525 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 28 Apr 2021 10:39:36 +0200 Subject: Examples: Use new form of super() Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer --- examples/samplebinding/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/samplebinding/main.py') diff --git a/examples/samplebinding/main.py b/examples/samplebinding/main.py index 135eca12e..144b36933 100644 --- a/examples/samplebinding/main.py +++ b/examples/samplebinding/main.py @@ -45,7 +45,7 @@ from Universe import Icecream, Truck class VanillaChocolateIcecream(Icecream): def __init__(self, flavor=""): - super(VanillaChocolateIcecream, self).__init__(flavor) + super().__init__(flavor) def clone(self): return VanillaChocolateIcecream(self.getFlavor()) @@ -55,7 +55,7 @@ class VanillaChocolateIcecream(Icecream): class VanillaChocolateCherryIcecream(VanillaChocolateIcecream): def __init__(self, flavor=""): - super(VanillaChocolateIcecream, self).__init__(flavor) + super().__init__(flavor) def clone(self): return VanillaChocolateCherryIcecream(self.getFlavor()) -- cgit v1.2.3