1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 20:17:45 +01:00

[fix] pep8

This commit is contained in:
a01200356 2016-01-18 11:34:38 -06:00
parent 51278ee0be
commit 30bfbf2e07

View File

@ -16,7 +16,7 @@ import HTMLParser
# search-url
url = 'http://www.wolframalpha.com/'
search_url = url+'input/?{query}'
search_url = url + 'input/?{query}'
# xpath variables
scripts_xpath = '//script'
@ -61,7 +61,7 @@ def response(resp):
if line:
# extract answer from json
answer = line[line.find('{'):line.rfind('}')+1]
answer = line[line.find('{'):line.rfind('}') + 1]
try:
answer = loads(answer)
except Exception: