changeset 2415:1007128cb089

Whitespace/pep8 fixes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 17 Jul 2007 03:37:02 +0200
parents 58ae57239761
children bf9fb139b5d3 8ae20e588337
files MoinMoin/_tests/test_PageEditor.py MoinMoin/events/__init__.py jabberbot/i18n.py jabberbot/xmppbot.py
diffstat 4 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_PageEditor.py	Tue Jul 17 03:35:58 2007 +0200
+++ b/MoinMoin/_tests/test_PageEditor.py	Tue Jul 17 03:37:02 2007 +0200
@@ -189,11 +189,11 @@
         deleter = PageEditor(request, pagename)
         deleter.deletePage()
         print 'BODY:', deleter.body
-    
+
     editor = PageEditor(request, pagename)
     print 'BODY:', editor.body
     editor.saveText(testtext, 0)
-    
+
     print "PageEditor can't save a page if Abort is returned from PreSave event handlers"
     page = Page(request, pagename)
     assert page.body != testtext
--- a/MoinMoin/events/__init__.py	Tue Jul 17 03:35:58 2007 +0200
+++ b/MoinMoin/events/__init__.py	Tue Jul 17 03:37:02 2007 +0200
@@ -171,7 +171,7 @@
         @param reason: human-readable reason of failure
         """
         self.reason = reason
-        
+
 
 def get_handlers(cfg):
     """Create a list of available event handlers.
--- a/jabberbot/i18n.py	Tue Jul 17 03:35:58 2007 +0200
+++ b/jabberbot/i18n.py	Tue Jul 17 03:37:02 2007 +0200
@@ -10,7 +10,7 @@
 
 def getText(original, lang="en"):
     global translations
-    
+
     if not translations:
         init_i18n()
 
@@ -21,4 +21,4 @@
 
 def init_i18n():
     global translations
-    translations = {'en': { } }
+    translations = {'en': {}}
--- a/jabberbot/xmppbot.py	Tue Jul 17 03:35:58 2007 +0200
+++ b/jabberbot/xmppbot.py	Tue Jul 17 03:37:02 2007 +0200
@@ -217,7 +217,7 @@
         elif isinstance(command, cmd.GetPage) or isinstance(command, cmd.GetPageHTML):
             msg = _("""Here's the page "%(pagename)s" that you've requested:\n\n%(data)s""")
             self.send_message(command.jid, msg % {
-                      'pagename': command.pagename, 
+                      'pagename': command.pagename,
                       'data': command.data,
             })
 
@@ -229,9 +229,9 @@
         elif isinstance(command, cmd.GetPageInfo):
             msg = _("""Following detailed information on page "%(pagename)s" \
 is available::\n\n%(data)s""")
-            
-            self.send_message(command.jid, msg % { 
-                      'pagename': command.pagename, 
+
+            self.send_message(command.jid, msg % {
+                      'pagename': command.pagename,
                       'data': command.data,
             })
 
@@ -405,9 +405,9 @@
             if command in self.xmlrpc_commands:
                 classobj = self.xmlrpc_commands[command]
                 help_str = _("%(command)s - %(description)s\n\nUsage: %(command)s %(params)s")
-                return help_str % { 'command': command, 
-                                    'description': classobj.description, 
-                                    'params': classobj.parameter_list,
+                return help_str % {'command': command,
+                                   'description': classobj.description,
+                                   'params': classobj.parameter_list,
                                   }
             else:
                 return _("""Unknown command "%s" """) % (command, )
@@ -433,7 +433,7 @@
         except TypeError:
             msg = _("You've specified a wrong parameter list. \
 The call should look like:\n\n%(command)s %(params)s")
-            
+
             return msg % {'command': command[0], 'params': command_class.parameter_list}
 
     def handle_unsubscribed_presence(self, stanza):