diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 13:34:35 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 13:34:35 +0200 |
commit | 2a3b9a2e26fc9570c2dd2f070257968a2b3a1149 (patch) | |
tree | d104874dbc13e878303a37bb0e7f6d5c4ec42304 /searx/preferences.py | |
parent | f0059b80edd892cea2ed42c8fe350e9377956c9d (diff) | |
download | searxng-2a3b9a2e26fc9570c2dd2f070257968a2b3a1149.tar.gz searxng-2a3b9a2e26fc9570c2dd2f070257968a2b3a1149.zip |
[pylint] searx: drop no longer needed 'missing-function-docstring'
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/preferences.py')
-rw-r--r-- | searx/preferences.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index c19a11f4b..26506556a 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -117,7 +117,7 @@ class MultipleChoiceSetting(EnumStringSetting): self._validate_selections(elements) self.value = elements - def parse_form(self, data): # pylint: disable=missing-function-docstring + def parse_form(self, data): if self.locked: return @@ -154,7 +154,7 @@ class SetSetting(Setting): for element in elements: self.values.add(element) - def parse_form(self, data): # pylint: disable=missing-function-docstring + def parse_form(self, data): if self.locked: return @@ -226,22 +226,22 @@ class SwitchableSetting(Setting): if not hasattr(self, 'choices'): raise MissingArgumentException('missing argument: choices') - def transform_form_items(self, items): # pylint: disable=missing-function-docstring + def transform_form_items(self, items): # pylint: disable=no-self-use return items - def transform_values(self, values): # pylint: disable=missing-function-docstring + def transform_values(self, values): # pylint: disable=no-self-use return values - def parse_cookie(self, data): # pylint: disable=missing-function-docstring + def parse_cookie(self, data): # pylint: disable=attribute-defined-outside-init if data[DISABLED] != '': self.disabled = set(data[DISABLED].split(',')) if data[ENABLED] != '': self.enabled = set(data[ENABLED].split(',')) - def parse_form(self, items): # pylint: disable=missing-function-docstring + def parse_form(self, items): if self.locked: return @@ -262,14 +262,14 @@ class SwitchableSetting(Setting): resp.set_cookie('disabled_{0}'.format(self.value), ','.join(self.disabled), max_age=COOKIE_MAX_AGE) resp.set_cookie('enabled_{0}'.format(self.value), ','.join(self.enabled), max_age=COOKIE_MAX_AGE) - def get_disabled(self): # pylint: disable=missing-function-docstring + def get_disabled(self): disabled = self.disabled for choice in self.choices: # pylint: disable=no-member if not choice['default_on'] and choice['id'] not in self.enabled: disabled.add(choice['id']) return self.transform_values(disabled) - def get_enabled(self): # pylint: disable=missing-function-docstring + def get_enabled(self): enabled = self.enabled for choice in self.choices: # pylint: disable=no-member if choice['default_on'] and choice['id'] not in self.disabled: @@ -515,7 +515,7 @@ class Preferences: resp.set_cookie(k, v, max_age=COOKIE_MAX_AGE) return resp - def validate_token(self, engine): # pylint: disable=missing-function-docstring + def validate_token(self, engine): valid = True if hasattr(engine, 'tokens') and engine.tokens: valid = False |