Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
infra
spot
Commits
d24c58cf
Commit
d24c58cf
authored
Aug 19, 2018
by
Alice Ferrazzi
Browse files
Fix pep8 errors
parent
ff2eac9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
searx/engines/gentoo.py
View file @
d24c58cf
...
...
@@ -35,7 +35,7 @@ def locale_to_lang_code(locale):
# wikis for some languages were moved off from the main site, we need to make
# requests to correct URLs to be able to get results in those languages
lang_urls
=
{
lang_urls
=
{
'en'
:
{
'base'
:
'https://wiki.gentoo.org'
,
'search'
:
'/index.php?title=Special:Search&offset={offset}&{query}'
...
...
@@ -100,7 +100,8 @@ def request(query, params):
urls
=
get_lang_urls
(
language
)
search_url
=
urls
[
'base'
]
+
urls
[
'search'
]
params
[
'url'
]
=
search_url
.
format
(
query
=
query
,
offset
=
offset
,
language
=
language
)
params
[
'url'
]
=
search_url
.
format
(
query
=
query
,
offset
=
offset
,
language
=
language
)
return
params
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment