diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-08-27 14:38:39 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-08-27 14:38:39 +0200 |
commit | 079783e993383256b744849fba7bb5832506b4aa (patch) | |
tree | 2695920b7e0addf2c3905c6a0e8fa4a1ceb00b32 /searx/preferences.py | |
parent | 30d16e7ee630e6272222b36ccd202f6cf3fdda0a (diff) | |
download | searxng-079783e993383256b744849fba7bb5832506b4aa.tar.gz searxng-079783e993383256b744849fba7bb5832506b4aa.zip |
[fix] pylint
Diffstat (limited to 'searx/preferences.py')
-rw-r--r-- | searx/preferences.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index 34da1b7c6..cb33bc5aa 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -41,7 +41,7 @@ class Setting(object): """Base class of user settings""" def __init__(self, default_value, **kwargs): - super(Setting, self).__init__() + super().__init__() self.value = default_value for key, value in kwargs.items(): setattr(self, key, value) @@ -275,7 +275,7 @@ class EnginesSetting(SwitchableSetting): """Engine settings""" def _post_init(self): - super(EnginesSetting, self)._post_init() + super()._post_init() transformed_choices = [] for engine_name, engine in self.choices.items(): # pylint: disable=no-member,access-member-before-definition for category in engine.categories: @@ -302,7 +302,7 @@ class PluginsSetting(SwitchableSetting): """Plugin settings""" def _post_init(self): - super(PluginsSetting, self)._post_init() + super()._post_init() transformed_choices = [] for plugin in self.choices: # pylint: disable=access-member-before-definition transformed_choice = dict() @@ -319,7 +319,7 @@ class Preferences(object): """Validates and saves preferences to cookies""" def __init__(self, themes, categories, engines, plugins): - super(Preferences, self).__init__() + super().__init__() self.key_value_settings = { 'categories': MultipleChoiceSetting( |