summaryrefslogtreecommitdiff
path: root/searx/search/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search/__init__.py')
-rw-r--r--searx/search/__init__.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py
index e9e4f5640..0d45f0b7c 100644
--- a/searx/search/__init__.py
+++ b/searx/search/__init__.py
@@ -52,18 +52,17 @@ def initialize(settings_engines=None):
class EngineRef:
- __slots__ = 'name', 'category', 'from_bang'
+ __slots__ = 'name', 'category'
- def __init__(self, name: str, category: str, from_bang: bool=False):
+ def __init__(self, name: str, category: str):
self.name = name
self.category = category
- self.from_bang = from_bang
def __repr__(self):
- return "EngineRef({!r}, {!r}, {!r})".format(self.name, self.category, self.from_bang)
+ return "EngineRef({!r}, {!r})".format(self.name, self.category)
def __eq__(self, other):
- return self.name == other.name and self.category == other.category and self.from_bang == other.from_bang
+ return self.name == other.name and self.category == other.category
class SearchQuery: