浏览代码

[fix] pep8

Adam Tauber 11 年前
父节点
当前提交
52a817f5c1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      searx/engines/duckduckgo.py

+ 2
- 1
searx/engines/duckduckgo.py 查看文件

@@ -5,6 +5,7 @@ from searx.utils import html_to_text
5 5
 url = 'https://duckduckgo.com/html?{query}&s={offset}'
6 6
 locale = 'us-en'
7 7
 
8
+
8 9
 def request(query, params):
9 10
     offset = (params['pageno'] - 1) * 30
10 11
     q = urlencode({'q': query,
@@ -14,7 +15,7 @@ def request(query, params):
14 15
 
15 16
 
16 17
 def response(resp):
17
-    result_xpath = '//div[@class="results_links results_links_deep web-result"]'
18
+    result_xpath = '//div[@class="results_links results_links_deep web-result"]'  # noqa
18 19
     url_xpath = './/a[@class="large"]/@href'
19 20
     title_xpath = './/a[@class="large"]//text()'
20 21
     content_xpath = './/div[@class="snippet"]//text()'