Explorar o código

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

Erick Tryzelaar %!s(int64=11) %!d(string=hai) anos
pai
achega
b4bf797
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = []