def __init__(self, text, attrs=None):
        self.text = text
        attrs = [x.strip() for x in attrs.strip().split('|')]
        self.attrs = [x for x in attrs if x in ATTRIBUTES]
dataset/ETHPy150Open tanghaibao/jcvi/apps/console.py/ColoredText.__init__/original