Browse Source

[fix] pep8

asciimoo 11 years ago
parent
commit
455ff25a93
2 changed files with 3 additions and 3 deletions
  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):
 
 
         self.assertEqual(
         self.assertEqual(
             'title,url,content,host,engine,score\r\n'
             'title,url,content,host,engine,score\r\n'
-            'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,\r\n'
-            'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,\r\n',
+            'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,\r\n'  # noqa
+            'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,\r\n',  # noqa
             result.data
             result.data
         )
         )
 
 

+ 1 - 1
searx/webapp.py

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