[fix] pep8

This commit is contained in:
Adam Tauber 2019-10-14 15:09:39 +02:00
parent e74bdf8429
commit ed1c1bdb04
3 changed files with 2 additions and 3 deletions

View file

@ -106,7 +106,7 @@ def response(resp):
doc = fromstring(resp.text)
# parse results
for i,r in enumerate(doc.xpath(result_xpath)):
for i, r in enumerate(doc.xpath(result_xpath)):
if i >= 30:
break
try:

View file

@ -51,7 +51,6 @@ def request(query, params):
'engine0': 'v1all',
}
# set language if specified
if params['language'] != 'all':
language = 'english'

View file

@ -37,7 +37,7 @@ def on_result(request, search, result):
parsed_query = parse_qsl(query)
changed = False
for i,(param_name,_) in enumerate(list(parsed_query)):
for i, (param_name, _) in enumerate(list(parsed_query)):
for reg in regexes:
if reg.match(param_name):
parsed_query.pop(i)