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

@@ -10,7 +10,7 @@ KEY_TYPE_TEST = 'test'
class ApiKeyApiClient(BaseAPIClient):
def __init__(self):
super(self.__class__, self).__init__("a", "b", "c")
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']