def _colorize(self, content):
if self.color is None:<EOL><INDENT>return content<EOL><DEDENT>if self._color and self._color[<NUM_LIT:0>] == self.color:<EOL><INDENT>return self._color[<NUM_LIT:1>](content)<EOL><DEDENT>if self.color in COLORS:<EOL><INDENT>spec = getattr(self.manager.term, self.color)<EOL><DEDENT>else:<EOL><INDENT>spec = self.manager.term.color(self.color)<EOL><DEDENT>self._color = (self.color, spec)<EOL>return spec(content)<EOL>
Args:
    content(str): Color as a string or number 0 - 255 (Default: None)

Returns:
    :py:class:`str`: content formatted with color

Format ``content`` with the color specified for this progress bar

If no color is specified for this instance, the content is returned unmodified

The color discovery within this method is caching to improve performance