summaryrefslogtreecommitdiff
path: root/searx/query.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/query.py
parent78df10fb55d9632ccae71d9f3b9260c7614a421c (diff)
downloadsearxng-78883777438fc07833d983c50d9b131eb6feb9eb.tar.gz
searxng-78883777438fc07833d983c50d9b131eb6feb9eb.zip
Drop Python 2 (3/n): objects
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/query.py b/searx/query.py
index 69481f094..614e05c6b 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -28,7 +28,7 @@ from searx.engines import (
VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$')
-class RawTextQuery(object):
+class RawTextQuery:
"""parse raw text query (the value from the html input)"""
def __init__(self, query, disabled_engines):
@@ -178,7 +178,7 @@ class RawTextQuery(object):
return ''.join(self.query_parts)
-class SearchQuery(object):
+class SearchQuery:
"""container for all the search parameters (query, language, etc...)"""
def __init__(self, query, engines, categories, lang, safesearch, pageno, time_range,