浏览代码

[fix] pep8

asciimoo 11 年前
父节点
当前提交
455ff25a93
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      searx/tests/test_webapp.py
  2. 1
    1
      searx/webapp.py

+ 2
- 2
searx/tests/test_webapp.py 查看文件

@@ -83,8 +83,8 @@ class ViewsTestCase(SearxTestCase):
83 83
 
84 84
         self.assertEqual(
85 85
             'title,url,content,host,engine,score\r\n'
86
-            'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,\r\n'
87
-            'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,\r\n',
86
+            'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,\r\n'  # noqa
87
+            'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,\r\n',  # noqa
88 88
             result.data
89 89
         )
90 90
 

+ 1
- 1
searx/webapp.py 查看文件

@@ -252,7 +252,7 @@ def list_engines():
252 252
     """
253 253
     return render('engines.html',
254 254
                   categs=categories.items(),
255
-                  shortcuts={y:x for x,y in engine_shortcuts.items()})
255
+                  shortcuts={y: x for x, y in engine_shortcuts.items()})
256 256
 
257 257
 
258 258
 @app.route('/preferences', methods=['GET', 'POST'])