changeset 2526:b8dcc608abac

PEP8 fixes
author sharky93 <rishabhr123@gmail.com>
date Mon, 01 Jul 2013 03:39:42 +0530
parents 943fb98cd6f9
children ff89dbddeab0
files MoinMoin/converter/image_in.py MoinMoin/converter/moinwiki_in.py MoinMoin/converter/rst_in.py
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/image_in.py	Mon Jul 01 03:18:25 2013 +0530
+++ b/MoinMoin/converter/image_in.py	Mon Jul 01 03:39:42 2013 +0530
@@ -30,7 +30,7 @@
 
     def __call__(self, rev, contenttype=None, arguments=None):
         item_name = rev.item.name
-        query_keys = {'do':'get', 'rev':rev.revid}
+        query_keys = {'do': 'get', 'rev': rev.revid}
         attrib = {}
         if arguments:
             query = arguments.keyword.get(xinclude.href).query
@@ -44,7 +44,7 @@
             xlink.href: Iri(scheme='wiki', authority='', path='/' + item_name,
                             query=query),
         })
-        
+
         obj = moin_page.object_(attrib=attrib, children=[item_name, ])
         body = moin_page.body(children=(obj, ))
         return moin_page.page(children=(body, ))
--- a/MoinMoin/converter/moinwiki_in.py	Mon Jul 01 03:18:25 2013 +0530
+++ b/MoinMoin/converter/moinwiki_in.py	Mon Jul 01 03:39:42 2013 +0530
@@ -832,7 +832,7 @@
             args = parse_arguments(object_args).keyword  # XXX needs different parsing
         else:
             args = {}
-            
+
         query_keys = {}
         attrib = {}
         whitelist = ['width', 'height']
--- a/MoinMoin/converter/rst_in.py	Mon Jul 01 03:18:25 2013 +0530
+++ b/MoinMoin/converter/rst_in.py	Mon Jul 01 03:39:42 2013 +0530
@@ -331,12 +331,12 @@
         pass
 
     def visit_image(self, node):
-        whitelist = ['width', 'height', 'align', 'alt',]
+        whitelist = ['width', 'height', 'align', 'alt', ]
         attr = {}
         for key in whitelist:
             if node.get(key):
                 attr[html(key)] = node.get(key)
-        
+
         #there is no 'scale' attribute, hence absent from whitelist, handled separately
         #TODO: Error reporting in case of bad input, currently prints on terminal
         #TODO: mark_item_as_transclusion in html_out conflicts 'align' by adding item-wrapper