Fix Filehandler / FileHandler typo
authorLuca Bigliardi <shammash@google.com>
Thu, 13 May 2010 15:14:08 +0000 (16:14 +0100)
committerLuca Bigliardi <shammash@google.com>
Thu, 13 May 2010 15:25:26 +0000 (16:25 +0100)
Fix typo spotted by pylint:
E1101:2095:LogFileHandler.handleError: Module 'logging' has no 'Filehandler' member

Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/utils.py

index 6361621..4484085 100644 (file)
@@ -2092,7 +2092,7 @@ class LogFileHandler(logging.FileHandler):
 
     """
     try:
-      logging.Filehandler.handleError(self, record)
+      logging.FileHandler.handleError(self, record)
     except Exception:
       try:
         self.console.write("Cannot log message:\n%s\n" % self.format(record))