diff options
Diffstat (limited to 'pandora/clientbuilder.py')
-rw-r--r-- | pandora/clientbuilder.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pandora/clientbuilder.py b/pandora/clientbuilder.py index 7543df7..bc55cec 100644 --- a/pandora/clientbuilder.py +++ b/pandora/clientbuilder.py | |||
@@ -30,7 +30,7 @@ class TranslatingDict(dict): | |||
30 | VALUE_TRANSLATIONS = None | 30 | VALUE_TRANSLATIONS = None |
31 | 31 | ||
32 | def __init__(self, initial=None): | 32 | def __init__(self, initial=None): |
33 | super(TranslatingDict, self).__init__() | 33 | super().__init__() |
34 | 34 | ||
35 | assert self.KEY_TRANSLATIONS is not None | 35 | assert self.KEY_TRANSLATIONS is not None |
36 | assert self.VALUE_TRANSLATIONS is not None | 36 | assert self.VALUE_TRANSLATIONS is not None |
@@ -70,11 +70,11 @@ class TranslatingDict(dict): | |||
70 | 70 | ||
71 | def __setitem__(self, key, value): | 71 | def __setitem__(self, key, value): |
72 | key = self.translate_key(key) | 72 | key = self.translate_key(key) |
73 | super(TranslatingDict, self).__setitem__( | 73 | super().__setitem__( |
74 | key, self.translate_value(key, value)) | 74 | key, self.translate_value(key, value)) |
75 | 75 | ||
76 | 76 | ||
77 | class APIClientBuilder(object): | 77 | class APIClientBuilder: |
78 | """Abstract API Client Builder | 78 | """Abstract API Client Builder |
79 | 79 | ||
80 | Provides the basic functions for building an API client. Expects a | 80 | Provides the basic functions for building an API client. Expects a |
@@ -141,7 +141,7 @@ class SettingsDictBuilder(APIClientBuilder): | |||
141 | 141 | ||
142 | def __init__(self, settings, **kwargs): | 142 | def __init__(self, settings, **kwargs): |
143 | self.settings = settings | 143 | self.settings = settings |
144 | super(SettingsDictBuilder, self).__init__(**kwargs) | 144 | super().__init__(**kwargs) |
145 | 145 | ||
146 | def build(self): | 146 | def build(self): |
147 | settings = SettingsDict(self.settings) | 147 | settings = SettingsDict(self.settings) |
@@ -160,7 +160,7 @@ class FileBasedClientBuilder(APIClientBuilder): | |||
160 | def __init__(self, path=None, authenticate=True, **kwargs): | 160 | def __init__(self, path=None, authenticate=True, **kwargs): |
161 | self.path = path or self.DEFAULT_CONFIG_FILE | 161 | self.path = path or self.DEFAULT_CONFIG_FILE |
162 | self.authenticate = authenticate | 162 | self.authenticate = authenticate |
163 | super(FileBasedClientBuilder, self).__init__(**kwargs) | 163 | super().__init__(**kwargs) |
164 | 164 | ||
165 | @property | 165 | @property |
166 | def file_exists(self): | 166 | def file_exists(self): |