logging: handlers are old style class, super does not work there

This commit is contained in:
Benjamin Dauvergne 2013-05-28 09:14:49 +02:00
parent c5e20b7ca5
commit 69c7c72d45
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class SysLogHandler(logging.handlers.SysLogHandler):
def __init__(self, *args, **kwargs):
self.max_length = kwargs.pop('max_length', 70)
super(SysLogHandler, self).__init__(*args, **kwargs)
logging.handlers.SysLogHandler.__init__(self, *args, **kwargs)
def emit(self, record):
"""