[fix] pep8
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -51,7 +51,6 @@ def request(query, params):
|
||||
'engine0': 'v1all',
|
||||
}
|
||||
|
||||
|
||||
# set language if specified
|
||||
if params['language'] != 'all':
|
||||
language = 'english'
|
||||
|
||||
Reference in New Issue
Block a user