Skip to content
Snippets Groups Projects
Commit 8fc303e7 authored by Chris Bohn's avatar Chris Bohn
Browse files

Updated super() syntax to reflect Python 3 style

parent fbe5d178
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ class OneTimeButton(Button): ...@@ -8,7 +8,7 @@ class OneTimeButton(Button):
index = NumericProperty() index = NumericProperty()
def __init__(self): def __init__(self):
super(OneTimeButton, self).__init__() super().__init__()
self.index = OneTimeButton.count self.index = OneTimeButton.count
OneTimeButton.count += 1 OneTimeButton.count += 1
...@@ -21,7 +21,7 @@ class GuessingButton(Button): ...@@ -21,7 +21,7 @@ class GuessingButton(Button):
hidden_text = StringProperty('') hidden_text = StringProperty('')
def __init__(self, hidden_text): def __init__(self, hidden_text):
super(GuessingButton, self).__init__() super().__init__()
self.hidden_text = hidden_text self.hidden_text = hidden_text
def on_press(self): def on_press(self):
......
...@@ -5,7 +5,7 @@ class Person(object): ...@@ -5,7 +5,7 @@ class Person(object):
class Patient(Person): class Patient(Person):
def __str__(self): def __str__(self):
text = super(Patient, self).__str__() text = super().__str__()
return 'Patient, a specialization of {text}'.format(text=text) return 'Patient, a specialization of {text}'.format(text=text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment