#NEWLINE# def __init__( self , stream = None ) : #NEWLINE# #INDENT# if ( sys . version_info < ( 2 , 7 ) ) : #NEWLINE# #INDENT# logging . StreamHandler . __init__ ( self , stream ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# super ( StreamHandler , self ) . __init__ ( stream ) #NEWLINE# #UNINDENT# self . colored = ( sys . stderr . isatty ( ) if ( stream is None ) else stream . isatty ( ) ) #NEWLINE# self . red_level = logging . WARNING