def format_line(self, line): c = line[:1] if c == '+': return base.color_str(base.Green, line) elif c == '-': return base.color_str(base.Red, line) else: return line
def c(color, str): return base.color_str(color, str)