Selaa lähdekoodia

[fix] remove unused imports ++ pep8

Adam Tauber 11 vuotta sitten
vanhempi
commit
ce08abe223
3 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 0
    1
      searx/engines/google_news.py
  2. 2
    2
      searx/engines/vimeo.py
  3. 0
    1
      searx/engines/youtube.py

+ 0
- 1
searx/engines/google_news.py Näytä tiedosto

@@ -3,7 +3,6 @@
3 3
 from urllib import urlencode
4 4
 from json import loads
5 5
 from dateutil import parser
6
-from datetime import datetime
7 6
 
8 7
 categories = ['news']
9 8
 

+ 2
- 2
searx/engines/vimeo.py Näytä tiedosto

@@ -2,7 +2,6 @@ from urllib import urlencode
2 2
 from HTMLParser import HTMLParser
3 3
 from lxml import html
4 4
 from xpath import extract_text
5
-from datetime import datetime
6 5
 from dateutil import parser
7 6
 
8 7
 base_url = 'http://vimeo.com'
@@ -43,7 +42,8 @@ def response(resp):
43 42
         url = base_url + result.xpath(url_xpath)[0]
44 43
         title = p.unescape(extract_text(result.xpath(title_xpath)))
45 44
         thumbnail = extract_text(result.xpath(content_xpath)[0])
46
-        publishedDate = parser.parse(extract_text(result.xpath(publishedDate_xpath)[0]))
45
+        publishedDate = parser.parse(extract_text(
46
+            result.xpath(publishedDate_xpath)[0]))
47 47
 
48 48
         results.append({'url': url,
49 49
                         'title': title,

+ 0
- 1
searx/engines/youtube.py Näytä tiedosto

@@ -1,7 +1,6 @@
1 1
 from json import loads
2 2
 from urllib import urlencode
3 3
 from dateutil import parser
4
-from datetime import datetime
5 4
 
6 5
 categories = ['videos']
7 6