diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-28 10:39:36 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-28 12:08:29 +0200 |
commit | 1ec4d298984d90672354e7864e35af4100285525 (patch) | |
tree | bba17fc66bef715f50d042c40e37e2707b7e5c8a /examples/samplebinding/main.py | |
parent | 29edb488705c1498f67ff7c1958b27d617136da0 (diff) |
Examples: Use new form of super()
Task-number: PYSIDE-1112
Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/samplebinding/main.py')
-rw-r--r-- | examples/samplebinding/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
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()) |