Browse Source

Make wolframalpha_noapi.py flake8 compliant

a01200356 9 years ago
parent
commit
5ed8f4da80
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      searx/engines/wolframalpha_noapi.py

+ 4
- 4
searx/engines/wolframalpha_noapi.py View File

@@ -3,7 +3,7 @@
3 3
 # @website     http://www.wolframalpha.com/
4 4
 #
5 5
 # @using-api   no
6
-# @results     HTML, JS
6
+# @results     HTML
7 7
 # @stable      no
8 8
 # @parse       answer
9 9
 
@@ -26,7 +26,7 @@ def request(query, params):
26 26
 # get response from search-request
27 27
 def response(resp):
28 28
     results = []
29
-    
29
+
30 30
     # the answer is inside a js function
31 31
     # answer can be located in different 'pods', although by default it should be in pod_0200
32 32
     possible_locations = ['pod_0200\.push(.*)\n',
@@ -44,10 +44,10 @@ def response(resp):
44 44
         return results
45 45
 
46 46
     # extract answer from json
47
-    answer = line[line.find('{') : line.rfind('}')+1]
47
+    answer = line[line.find('{'):line.rfind('}')+1]
48 48
     answer = json.loads(answer.encode('unicode-escape'))
49 49
     answer = answer['stringified'].decode('unicode-escape')
50 50
 
51 51
     results.append({'answer': answer})
52
-    
52
+
53 53
     return results