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:
parent
5e6e73fce6
commit
cc52c6e230
4
waflib/extras/cpplint.py
vendored
4
waflib/extras/cpplint.py
vendored
@ -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
Block a user