[Zodb-checkins] CVS: Zope/lib/python/zLOG/tests - testzLog.py:1.8

Martijn Pieters mj@zope.com
Wed, 14 Aug 2002 18:12:34 -0400


Update of /cvs-repository/Zope/lib/python/zLOG/tests
In directory cvs.zope.org:/tmp/cvs-serv21528/tests

Modified Files:
	testzLog.py 
Log Message:
Clean up indentation and trailing whitespace.


=== Zope/lib/python/zLOG/tests/testzLog.py 1.7 => 1.8 ===
--- Zope/lib/python/zLOG/tests/testzLog.py:1.7	Wed Jul  3 22:31:53 2002
+++ Zope/lib/python/zLOG/tests/testzLog.py	Wed Aug 14 18:12:33 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 
 import os
@@ -22,9 +22,9 @@
     -300: 'TRACE',
     -200: 'DEBUG',
     -100: 'BLATHER',
-       0: 'INFO',       
-     100: 'PROBLEM', 
-     200: 'ERROR',    
+       0: 'INFO',
+     100: 'PROBLEM',
+     200: 'ERROR',
      300: 'PANIC',
     }
 
@@ -52,7 +52,7 @@
             del os.environ['STUPID_LOG_SEVERITY']
         if os.environ.has_key('EVENT_LOG_SEVERITY'):
             del os.environ['EVENT_LOG_SEVERITY']
-            
+
     def setLog(self, severity=0):
         os.environ['%s_LOG_FILE' % self.prefix] = self.path
         if severity:
@@ -68,7 +68,7 @@
             if not line:
                 self.fail("can't find entry in log file")
             line = f.readline()
-            
+
         line = f.readline().strip()
         _time, rest = line.split(" ", 1)
         if time is not None:
@@ -122,7 +122,7 @@
             1 / 0
         except ZeroDivisionError, err:
             err = sys.exc_info()
-            
+
         zLOG.LOG("basic", zLOG.INFO, "summary")
         zLOG.LOG("basic", zLOG.ERROR, "raised exception", error=err)
 
@@ -139,7 +139,7 @@
     suite = unittest.makeSuite(StupidLogTest, 'check')
     suite.addTest(unittest.makeSuite(EventLogTest, 'check'))
     return suite
-            
+
 if __name__ == "__main__":
     loader = unittest.TestLoader()
     loader.testMethodPrefix = "check"