<s> """<STR_LIT>""" <EOL> import sys <EOL> RED = '<STR_LIT>' <EOL> GREEN = '<STR_LIT>' <EOL> YELLOW = '<STR_LIT>' <EOL> BLUE = '<STR_LIT>' <EOL> DEF = '<STR_LIT>' <EOL> def error ( msg , fatal = True ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( RED , DEF , msg ) ) <EOL> if fatal : <EOL> sys . exit ( <NUM_LIT:10> ) <EOL> def warn ( msg ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( YELLOW , DEF , msg ) ) <EOL> def ok ( item , status ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( item , GREEN , status , DEF ) ) <EOL> def failed ( item , status ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( item , RED , status , DEF ) ) <EOL> def optional ( item , status ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( item , YELLOW , status , DEF ) ) <EOL> def info ( msg ) : <EOL> """<STR_LIT>""" <EOL> print ( msg ) <EOL> def colored ( color , msg ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( color , msg , DEF ) ) </s>
