Drop python 2 log object type workaround

This commit is contained in:
Damian Johnson 2020-01-05 12:50:58 -08:00
parent f74f10dead
commit aa6aaa2e6f

View File

@ -231,13 +231,7 @@ class LogBuffer(logging.Handler):
"""
def __init__(self, runlevel, yield_records = False):
# TODO: At least in python 2.6 logging.Handler has a bug in that it doesn't
# extend object, causing our super() call to fail. When we drop python 2.6
# support we should switch back to using super() instead.
#
# super(LogBuffer, self).__init__(level = logging_level(runlevel))
logging.Handler.__init__(self, level = logging_level(runlevel))
super(LogBuffer, self).__init__(level = logging_level(runlevel))
self.formatter = FORMATTER
self._buffer = []