mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
Drop Python 2 (3/n): objects
This commit is contained in:
parent
78df10fb55
commit
7888377743
8 changed files with 16 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue