def from_text(text):
    'Break the text into trimed, non-comment lines'
    lines = []
    for line in text.split('\n'):
        line = line.rstrip(' \r')
        if (not line):
            continue
        if line.startswith('!'):
            continue
        lines.append(line)
    return lines
Break the text into trimed, non-comment lines
def from_text(text):
    
    lines = []
    for line in text.split('\n'):
        line = line.rstrip(' \r')
        if (not line):
            continue
        if line.startswith('!'):
            continue
        lines.append(line)
    return lines