def _parse_title(line_iter, cur_line, conf):
    """
    Parse "title" in grub v1 config
    """
    title = []
    conf['title'].append(title)
    title.append(('title_name', cur_line.split('title', 1)[1].strip()))
    while (True):
        line = next(line_iter)
        if line.startswith("title "):
            return line

        cmd, opt = _parse_cmd(line)
        title.append((cmd, opt))
def _parse_title ( line_iter , cur_line , conf ) : title = [ ] conf [ 'title' ] . append ( title ) title . append ( ( 'title_name' , cur_line . split ( 'title' , 1 ) [ 1 ] . strip ( ) ) ) while ( True ) : line = next ( line_iter ) if line . startswith ( "title " ) : return line cmd , opt = _parse_cmd ( line ) title . append ( ( cmd , opt ) )
Parse "title" in grub v1 config