Use super() ('newstyle class' in 2.7+)

This commit is contained in:
Anthony Sottile
2016-08-31 16:20:55 -07:00
parent 0a810249e3
commit 5961a8e5f1

View File

@@ -16,7 +16,7 @@ LOG_LEVEL_COLORS = {
class LoggingHandler(logging.Handler):
def __init__(self, use_color, write=sys.stdout.write):
logging.Handler.__init__(self)
super(LoggingHandler, self).__init__()
self.use_color = use_color
self.__write = write