cpplint: logger subclasses also inherit from object to safely call super()

This commit is contained in:
Akira Baruah 2017-05-11 15:57:00 -07:00 committed by Thomas Nagy
parent 07c47309de
commit 5410e58ce5
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ def configure(conf):
conf.end_msg('not found, skipping it.')
class cpplint_formatter(Logs.formatter):
class cpplint_formatter(Logs.formatter, object):
def __init__(self, fmt):
logging.Formatter.__init__(self, CPPLINT_FORMAT)
self.fmt = fmt
@ -105,7 +105,7 @@ class cpplint_formatter(Logs.formatter):
return super(cpplint_formatter, self).format(rec)
class cpplint_handler(Logs.log_handler):
class cpplint_handler(Logs.log_handler, object):
def __init__(self, stream=sys.stderr, **kw):
super(cpplint_handler, self).__init__(stream, **kw)
self.stream = stream