Commits

sharky93  committed 008e9d6

PEP8 fixes

  • Participants
  • Parent commits cd78c85

Comments (0)

Files changed (2)

File MoinMoin/apps/frontend/views.py

             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:
                 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:

File MoinMoin/converter/_tests/test_image.py

         buffer = StringIO()
         elem.write(buffer.write, **options)
         return buffer.getvalue()
-    
+
     def setup_class(self):
         self.converter = ConverterPage()
 
         ]
 
         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)