mirror of https://gitlab.com/ita1024/waf.git
cpplint: logger subclasses also inherit from object to safely call super()
This commit is contained in:
parent
07c47309de
commit
5410e58ce5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue