Browse Source

[fix] pep8

Adam Tauber 10 years ago
parent
commit
cc4e17b668
3 changed files with 8 additions and 9 deletions
  1. 3
    3
      searx/engines/flickr-noapi.py
  2. 3
    3
      searx/engines/subtitleseeker.py
  3. 2
    3
      searx/engines/wikidata.py

+ 3
- 3
searx/engines/flickr-noapi.py View File

@@ -81,9 +81,9 @@ def response(resp):
81 81
 
82 82
         if 'description' in photo:
83 83
             content = content +\
84
-                      '<span class="description">' +\
85
-                      photo['description'] +\
86
-                      '</span>'
84
+                '<span class="description">' +\
85
+                photo['description'] +\
86
+                '</span>'
87 87
 
88 88
         # append result
89 89
         results.append({'url': url,

+ 3
- 3
searx/engines/subtitleseeker.py View File

@@ -65,9 +65,9 @@ def response(resp):
65 65
 
66 66
         if result.xpath(".//span") != []:
67 67
             content = content +\
68
-                      " - (" +\
69
-                      result.xpath(".//span//text()")[0].strip() +\
70
-                      ")"
68
+                " - (" +\
69
+                result.xpath(".//span//text()")[0].strip() +\
70
+                ")"
71 71
 
72 72
         # append result
73 73
         results.append({'url': href,

+ 2
- 3
searx/engines/wikidata.py View File

@@ -2,7 +2,6 @@ import json
2 2
 from requests import get
3 3
 from urllib import urlencode
4 4
 import locale
5
-import time
6 5
 import dateutil.parser
7 6
 
8 7
 result_count = 1
@@ -38,7 +37,7 @@ def response(resp):
38 37
     language = resp.search_params['language'].split('_')[0]
39 38
     if language == 'all':
40 39
         language = 'en'
41
-    
40
+
42 41
     try:
43 42
         locale.setlocale(locale.LC_ALL, str(resp.search_params['language']))
44 43
     except:
@@ -47,7 +46,7 @@ def response(resp):
47 46
         except:
48 47
             pass
49 48
         pass
50
-    
49
+
51 50
     url = url_detail.format(query=urlencode({'ids': '|'.join(wikidata_ids),
52 51
                                             'languages': language + '|en'}))
53 52