<s> def _IsColor ( color ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( color , basestring ) : <EOL> return False <EOL> color = color . strip ( '<STR_LIT:#>' ) <EOL> if len ( color ) != <NUM_LIT:3> and len ( color ) != <NUM_LIT:6> : <EOL> return False <EOL> hex_letters = '<STR_LIT>' <EOL> for letter in color : <EOL> if letter not in hex_letters : <EOL> return False <EOL> return True </s>
