def parse(self, text):
        lines = []
        for line in text.splitlines():
            if line.startswith("no crontab"):
                continue

            mo = CrontabFile.COMMENT_RE.match(line)
            if mo:
                lines.append(Comment(mo.group(1).strip()))
                continue

            mo = CrontabFile.VARIABLE_RE.match(line)
            if mo:
                lines.append(Variable(mo.group(1), mo.group(2)))
                continue

            mo = CrontabFile.BLANK_RE.match(line)
            if mo:
                lines.append(BlankLine())
                continue
            # crontabline
            try:
                [minute, hour, dom, month, dow, cmd] = line.split(None, 5)
            except __HOLE__: # some strange line, ignore it.
                pass
            else:
                lines.append(CrontabLine(cmd, minute, hour, dom, month, dow))
        return lines
dataset/ETHPy150Open kdart/pycopia/process/pycopia/crontab.py/CrontabFile.parse