summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2020-08-12 09:42:27 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-10 10:39:04 +0200
commit78883777438fc07833d983c50d9b131eb6feb9eb (patch)
treefec44995d58a5c8ebe33ccd4406eaa228a55cbb3 /searx/preferences.py
parent78df10fb55d9632ccae71d9f3b9260c7614a421c (diff)
downloadsearxng-78883777438fc07833d983c50d9b131eb6feb9eb.tar.gz
searxng-78883777438fc07833d983c50d9b131eb6feb9eb.zip
Drop Python 2 (3/n): objects
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 04098be25..3042636a6 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -32,7 +32,7 @@ class ValidationException(Exception):
"""
-class Setting(object):
+class Setting:
"""Base class of user settings"""
def __init__(self, default_value, **kwargs):
@@ -310,7 +310,7 @@ class PluginsSetting(SwitchableSetting):
return [item[len('plugin_'):] for item in items]
-class Preferences(object):
+class Preferences:
"""Validates and saves preferences to cookies"""
def __init__(self, themes, categories, engines, plugins):