diff options
author | Dalf <alex@al-f.net> | 2020-08-11 16:25:03 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-10 10:49:42 +0200 |
commit | c225db45c8a4ab466bff049216f7e0189dc1b067 (patch) | |
tree | 16be3299a6faf15538fc1f2cf181aadc422039fd /searx/engines/gentoo.py | |
parent | 78883777438fc07833d983c50d9b131eb6feb9eb (diff) | |
download | searxng-c225db45c8a4ab466bff049216f7e0189dc1b067.tar.gz searxng-c225db45c8a4ab466bff049216f7e0189dc1b067.zip |
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
Diffstat (limited to 'searx/engines/gentoo.py')
-rw-r--r-- | searx/engines/gentoo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/gentoo.py b/searx/engines/gentoo.py index b4b02e6b4..b6bc99fab 100644 --- a/searx/engines/gentoo.py +++ b/searx/engines/gentoo.py @@ -90,7 +90,7 @@ def request(query, params): # if our language is hosted on the main site, we need to add its name # to the query in order to narrow the results to that language if language in main_langs: - query += b' (' + (main_langs[language]).encode() + b')' + query += ' (' + main_langs[language] + ')' # prepare the request parameters query = urlencode({'search': query}) |