Commits

sharky93 committed b8dcc60

PEP8 fixes

Comments (0)

Files changed (3)

MoinMoin/converter/image_in.py

 
     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
             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, ))

MoinMoin/converter/moinwiki_in.py

             args = parse_arguments(object_args).keyword  # XXX needs different parsing
         else:
             args = {}
-            
+
         query_keys = {}
         attrib = {}
         whitelist = ['width', 'height']

MoinMoin/converter/rst_in.py

         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