[svn] commit: r1956 - /branches/trac176/src/lib/python/isc/log/log.py

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 28 02:11:01 UTC 2010


Author: chenzhengzhang
Date: Fri May 28 02:11:01 2010
New Revision: 1956

Log:
Eliminate a superfluous condition select sentense


Modified:
    branches/trac176/src/lib/python/isc/log/log.py

Modified: branches/trac176/src/lib/python/isc/log/log.py
==============================================================================
--- branches/trac176/src/lib/python/isc/log/log.py (original)
+++ branches/trac176/src/lib/python/isc/log/log.py Fri May 28 02:11:01 2010
@@ -171,10 +171,8 @@
         self.addHandler(self.syslog_handler)
 
     def update_rotate_handler(self, log_file, max_bytes, backup_count):
-        # If logFile was specified
-        if (self.rotating_handler not in self.handlers):
-            pass
-        else:
+        if (self.rotating_handler in self.handlers):
+            # If logFile was specified
             if(log_file != 0 and log_file != ''):
                 self.rotating_handler.update_config(log_file, max_bytes, backup_count)
             else:




More information about the bind10-changes mailing list