diff --git a/main.py b/main.py index da803ca2c63c19222f47e008b9ed4cb8c4a647c0..11b5e3159818f79c14b7e3032c450dd5e35c96c2 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ class OneTimeButton(Button): index = NumericProperty() def __init__(self): - super(OneTimeButton, self).__init__() + super().__init__() self.index = OneTimeButton.count OneTimeButton.count += 1 @@ -21,7 +21,7 @@ class GuessingButton(Button): hidden_text = StringProperty('') def __init__(self, hidden_text): - super(GuessingButton, self).__init__() + super().__init__() self.hidden_text = hidden_text def on_press(self): diff --git a/override.py b/override.py index 8993254920bb8e82bc8bccdb18687b3bb8b1b1aa..b07f9651f158c57612fbda7013a2e76fb617f279 100644 --- a/override.py +++ b/override.py @@ -5,7 +5,7 @@ class Person(object): class Patient(Person): def __str__(self): - text = super(Patient, self).__str__() + text = super().__str__() return 'Patient, a specialization of {text}'.format(text=text)