2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-10 12:19:13 +01:00

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 ita1024
parent 5e6e73fce6
commit cc52c6e230

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