浏览代码

[desktop] Python-2.6's logging.Handler is an old-style class

Erick Tryzelaar 11 年之前
父节点
当前提交
b4bf797
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/redaction/tests.py

+ 1 - 1
desktop/core/src/desktop/redaction/tests.py

@@ -28,7 +28,7 @@ from nose.tools import assert_true, assert_equal, assert_not_equal
 
 class MockLoggingHandler(logging.Handler):
   def __init__(self, *args, **kwargs):
-    super(MockLoggingHandler, self).__init__(*args, **kwargs)
+    logging.Handler.__init__(self, *args, **kwargs)
 
     self.records = []