Browse Source

[fix] pep8

a01200356 9 years ago
parent
commit
30bfbf2e07
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/engines/wolframalpha_noapi.py

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

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