Fix compatibility problem with logging.StreamHandler in Python 2.7

This commit is contained in:
Bastian Kleineidam 2010-09-29 14:41:38 +02:00
parent 473c834f0c
commit 3795a91a99

View file

@ -262,7 +262,7 @@ class ColoredStreamHandler (logging.StreamHandler, object):
"""Log to given stream (a file-like object) or to stderr if
strm is None.
"""
super(ColoredStreamHandler, self).__init__(strm=strm)
super(ColoredStreamHandler, self).__init__(strm)
self.stream = Colorizer(self.stream)
# standard log level colors (used by get_color)
self.colors = {