changeset 2492:5b8e8e7db56f

Whitespace fixes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 22 Jul 2007 04:15:26 +0200
parents 41669a7a60ad
children f3e3ffa68a7f
files MoinMoin/_tests/test_PageEditor.py MoinMoin/events/__init__.py
diffstat 2 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_PageEditor.py	Sun Jul 22 04:14:23 2007 +0200
+++ b/MoinMoin/_tests/test_PageEditor.py	Sun Jul 22 04:15:26 2007 +0200
@@ -171,34 +171,34 @@
 
 
 class TestSave:
-    
+
     def setup_method(self, method):
         self.old_handlers = self.request.cfg.event_handlers
         gain_superuser_rights(self.request)
-        
+
     def teardown_method(self, method):
         self.request.cfg.event_handlers = self.old_handlers
-        
+
     def testSaveAbort(self):
         """Test if saveText() is interrupted if PagePreSave event handler returns Abort"""
-    
+
         def handler(event):
             from MoinMoin.events import Abort
             return Abort("This is just a test")
-    
+
         pagename = u'AutoCreatedMoinMoinTemporaryTestPageFortestSave'
         testtext = u'ThisIsSomeStupidTestPageText!'
 
         self.request.cfg.event_handlers = [handler]
-        
+
         page = Page(self.request, pagename)
         if page.exists():
             deleter = PageEditor(self.request, pagename)
             deleter.deletePage()
-    
+
         editor = PageEditor(self.request, pagename)
         editor.saveText(testtext, 0)
-    
+
         print "PageEditor can't save a page if Abort is returned from PreSave event handlers"
         page = Page(self.request, pagename)
         assert page.body != testtext
--- a/MoinMoin/events/__init__.py	Sun Jul 22 04:14:23 2007 +0200
+++ b/MoinMoin/events/__init__.py	Sun Jul 22 04:15:26 2007 +0200
@@ -27,6 +27,7 @@
 # so that they get into .po files
 _ = lambda x: x
 
+
 class Event(object):
     """A class handling information common to all events."""
     def __init__(self, request):