def stringc(text, color):
 if ANSIBLE_COLOR:
  return '\n'.join([(u'\x1b[%sm%s\x1b[0m' % (codeCodes[color], t)) for t in text.split('\n')])
 else:
  return text

def stringc ( text , color ) : if ANSIBLE_COLOR : return '\n' . join ( [ ( u'\x1b[%sm%s\x1b[0m' % ( codeCodes [ color ] , t ) ) for t in text . split ( '\n' ) ] ) else : return text
string in color .