Remove extraneous arguments to super

> dont need self.__class__, self in super - that's a python 2.x crutch.
> super() is equivalent
This commit is contained in:
Chris Hill-Scott
2016-09-12 14:59:53 +01:00
parent 5fda35c89d
commit 92aacc1a54
11 changed files with 11 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ class ServiceAPIClient(NotificationsAPIClient):
# Fudge assert in the super __init__ so
# we can set those variables later.
def __init__(self):
super(self.__class__, self).__init__("a", "b", "c")
super().__init__("a", "b", "c")
def init_app(self, application):
self.base_url = application.config['API_HOST_NAME']