Browse Source

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

Erick Tryzelaar 11 năm trước cách đây
mục cha
commit
b4bf797
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = []