mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +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
|
@ -30,8 +30,8 @@ route_re = re.compile('(?:from )?(.+) to (.+)')
|
|||
# do search-request
|
||||
def request(query, params):
|
||||
|
||||
params['url'] = base_url + search_string.format(query=query.decode())
|
||||
params['route'] = route_re.match(query.decode())
|
||||
params['url'] = base_url + search_string.format(query=query)
|
||||
params['route'] = route_re.match(query)
|
||||
|
||||
return params
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue