changeset 2538:008e9d6e2040

PEP8 fixes
author sharky93 <rishabhr123@gmail.com>
date Sun, 22 Sep 2013 22:56:09 +0530
parents cd78c858b1e6
children 1c873c0165f3
files MoinMoin/apps/frontend/views.py MoinMoin/converter/_tests/test_image.py
diffstat 2 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Sep 22 22:29:52 2013 +0530
+++ b/MoinMoin/apps/frontend/views.py	Sun Sep 22 22:56:09 2013 +0530
@@ -314,7 +314,7 @@
             content_suggestions = [word for word, score in results.key_terms(CONTENT, docs=20, numterms=10)]
             flaskg.clock.stop('search suggestions')
             flaskg.clock.start('search render')
-            
+
             lastword = query.split(' ')[-1]
             word_suggestions = []
             if len(lastword) > 2:
@@ -322,21 +322,21 @@
                 word_suggestions = corrector.suggest(lastword, limit=3)
             if ajax:
                 html = render_template('ajaxsearch.html',
-                                   results=results,
-                                   word_suggestions=u', '.join(word_suggestions),
-                                   name_suggestions=u', '.join(name_suggestions),
-                                   content_suggestions=u', '.join(content_suggestions),
-                                   omitted_words=u', '.join(omitted_words),
+                                        results=results,
+                                        word_suggestions=u', '.join(word_suggestions),
+                                        name_suggestions=u', '.join(name_suggestions),
+                                        content_suggestions=u', '.join(content_suggestions),
+                                        omitted_words=u', '.join(omitted_words),
                 )
             else:
                 html = render_template('search.html',
-                                   results=results,
-                                   name_suggestions=u', '.join(name_suggestions),
-                                   content_suggestions=u', '.join(content_suggestions),
-                                   query=query,
-                                   medium_search_form=search_form,
-                                   item_name=item_name,
-                                   omitted_words=u', '.join(omitted_words),
+                                        results=results,
+                                        name_suggestions=u', '.join(name_suggestions),
+                                        content_suggestions=u', '.join(content_suggestions),
+                                        query=query,
+                                        medium_search_form=search_form,
+                                        item_name=item_name,
+                                        omitted_words=u', '.join(omitted_words),
                 )
             flaskg.clock.stop('search render')
     else:
--- a/MoinMoin/converter/_tests/test_image.py	Sun Sep 22 22:29:52 2013 +0530
+++ b/MoinMoin/converter/_tests/test_image.py	Sun Sep 22 22:56:09 2013 +0530
@@ -19,7 +19,7 @@
         buffer = StringIO()
         elem.write(buffer.write, **options)
         return buffer.getvalue()
-    
+
     def setup_class(self):
         self.converter = ConverterPage()
 
@@ -40,8 +40,8 @@
         ]
 
         output = ('<div xmlns="http://www.w3.org/1999/xhtml"><p data-lineno="1"><span class="moin-transclusion" '
-                'data-href="/imagetest"><img src="/+get/+2882c905b2ab409fbf79cd05637a112d/imagetest">'
-                '</span></p></div>')
+                  'data-href="/imagetest"><img src="/+get/+2882c905b2ab409fbf79cd05637a112d/imagetest">'
+                  '</span></p></div>')
 
         for imagetype in tests:
             self.runTest(tree_xml.format(imagetype), output)