forked from Icycoide/searxng
Drop Python 2 (3/n): objects
This commit is contained in:
parent
78df10fb55
commit
7888377743
8 changed files with 16 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue