forked from Ponysearch/Ponysearch
Make wolframalpha_noapi.py flake8 compliant
This commit is contained in:
parent
d827fc49a1
commit
5ed8f4da80
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
# @website http://www.wolframalpha.com/
|
# @website http://www.wolframalpha.com/
|
||||||
#
|
#
|
||||||
# @using-api no
|
# @using-api no
|
||||||
# @results HTML, JS
|
# @results HTML
|
||||||
# @stable no
|
# @stable no
|
||||||
# @parse answer
|
# @parse answer
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ def response(resp):
|
||||||
return results
|
return results
|
||||||
|
|
||||||
# extract answer from json
|
# extract answer from json
|
||||||
answer = line[line.find('{') : line.rfind('}')+1]
|
answer = line[line.find('{'):line.rfind('}')+1]
|
||||||
answer = json.loads(answer.encode('unicode-escape'))
|
answer = json.loads(answer.encode('unicode-escape'))
|
||||||
answer = answer['stringified'].decode('unicode-escape')
|
answer = answer['stringified'].decode('unicode-escape')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue