mirror of
https://github.com/torproject/stem.git
synced 2024-12-03 07:40:43 +00:00
Drop python 2 log object type workaround
This commit is contained in:
parent
f74f10dead
commit
aa6aaa2e6f
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user