summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alice.ferrazzi@gmail.com>2018-08-19 10:31:09 +0900
committerAlice Ferrazzi <alice.ferrazzi@gmail.com>2018-08-21 22:55:51 +0900
commitd24c58cf4eafaf574cbc5b19243da922de2416f6 (patch)
treed79a77bbb9569d273177e414a823fca7fc70d720
parentff2eac9f6b382e8ad30eed2b733740ce4a50f6e6 (diff)
downloadsearxng-d24c58cf4eafaf574cbc5b19243da922de2416f6.tar.gz
searxng-d24c58cf4eafaf574cbc5b19243da922de2416f6.zip
Fix pep8 errors
-rw-r--r--searx/engines/gentoo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/engines/gentoo.py b/searx/engines/gentoo.py
index 39568a148..a7a966cc9 100644
--- a/searx/engines/gentoo.py
+++ b/searx/engines/gentoo.py
@@ -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