def __init__(self, expr):
    super(ParseElementEnhance, self).__init__()
    if isinstance(expr, six.text_type):
        expr = Word(expr)
    self.expr = expr
def __init__(self, expr):
    super(ParseElementEnhance, self).__init__()
    if isinstance(expr, six.text_type):
        expr = Word(expr)
    self.expr = expr