commit: 7bf1013c1591c1af177063477fb4ac9ed178ff2a
parent bc806bfab1cc75279dc912bf443dc39178a872dd
Author: potato <mail@crazypotato.tk>
Date: Tue, 6 Sep 2016 14:24:08 +0200
[enh] removed missing params; [fix] pep8
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py
@@ -26,6 +26,7 @@ def is_valid_lang(lang):
return (True, l[1].lower())
return False
+
def request(query, params):
m = parser_re.match(unicode(query, 'utf8'))
if not m:
@@ -39,13 +40,13 @@ def request(query, params):
if not from_lang or not to_lang:
return params
- params['url'] = url.format(from_lang=from_lang[1], to_lang=to_lang[1],query=query)
- params['from_lang'] = from_lang[1]
- params['to_lang'] = to_lang[1]
- params['query'] = query
+ params['url'] = url.format(from_lang=from_lang[1],
+ to_lang=to_lang[1],
+ query=query)
return params
+
def response(resp):
results = []
@@ -70,5 +71,3 @@ def response(resp):
})
return results
-
-