mirror of
https://github.com/searxng/searxng.git
synced 2025-07-25 06:09:18 +02:00
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
This commit is contained in:
parent
7888377743
commit
c225db45c8
20 changed files with 48 additions and 48 deletions
|
@ -47,7 +47,7 @@ def request(query, params):
|
|||
else:
|
||||
lang = match_language(params['language'], supported_languages, language_aliases)
|
||||
|
||||
query = 'language:{} {}'.format(lang.split('-')[0].upper(), query.decode()).encode()
|
||||
query = 'language:{} {}'.format(lang.split('-')[0].upper(), query)
|
||||
|
||||
search_path = search_string.format(
|
||||
query=urlencode({'q': query}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue