[svn] commit: r2967 - in /branches/trac267/src/lib/python/isc/log: log.py tests/log_test.py

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Sep 17 09:47:28 UTC 2010


Author: chenzhengzhang
Date: Fri Sep 17 09:47:28 2010
New Revision: 2967

Log:
fixed a typo and removed useless blank line

Modified:
    branches/trac267/src/lib/python/isc/log/log.py
    branches/trac267/src/lib/python/isc/log/tests/log_test.py

Modified: branches/trac267/src/lib/python/isc/log/log.py
==============================================================================
--- branches/trac267/src/lib/python/isc/log/log.py (original)
+++ branches/trac267/src/lib/python/isc/log/log.py Fri Sep 17 09:47:28 2010
@@ -68,9 +68,7 @@
         else:
             abs_file_dir = os.path.abspath(os.path.dirname(file_name))
         abs_file_name = os.path.join(abs_file_dir, os.path.basename(file_name))
-
         return abs_file_name
-
 
     def shouldRollover(self, record):
         """Rewrite RotatingFileHandler.shouldRollover. 

Modified: branches/trac267/src/lib/python/isc/log/tests/log_test.py
==============================================================================
--- branches/trac267/src/lib/python/isc/log/tests/log_test.py (original)
+++ branches/trac267/src/lib/python/isc/log/tests/log_test.py Fri Sep 17 09:47:28 2010
@@ -65,7 +65,7 @@
         self.assertEqual(self.handler.maxBytes, 512)
         self.assertEqual(self.handler.backupCount, 3)
 
-        # check the existence new log file.
+        # check the existence of new log file.
         # emit() will call shouldRollover() to update the log file
         if(os.path.exists(self.FILE_LOG2.name)):
             os.remove(self.FILE_LOG2.name)




More information about the bind10-changes mailing list