def _Colorize(color, text): # |color| as a string to avoid pylint's no-member warning :(. # pylint: disable=no-member return getattr(colorama.Fore, color) + text + colorama.Fore.RESET