Python 2.6 compatibility for LoggingHandler. Closes #66.

This commit is contained in:
Anthony Sottile
2014-04-07 17:04:21 -07:00
parent 8b0a2abaf9
commit 7a8dcb0ca9

View File

@@ -16,7 +16,7 @@ LOG_LEVEL_COLORS = {
class LoggingHandler(logging.Handler):
def __init__(self, use_color):
super(LoggingHandler, self).__init__()
logging.Handler.__init__(self)
self.use_color = use_color
def emit(self, record):