#NEWLINE# def color( text , color_value , color_setting ) : #NEWLINE# #INDENT# if ( not color_setting ) : #NEWLINE# #INDENT# return text #NEWLINE# #UNINDENT# return '{0}{1}{2}' . format ( color_value , color_setting , NORMAL )