def _parse_keyvals(self, line_iter):
out = None<EOL>line = None<EOL>for line in line_iter:<EOL><INDENT>if len(line) == <NUM_LIT:1> and line[<NUM_LIT:0>].upper() == line[<NUM_LIT:0>]:<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>if out is None:<EOL><INDENT>while not line[-<NUM_LIT:1>]:<EOL><INDENT>line = line[:-<NUM_LIT:1>]<EOL><DEDENT>out = [{} for _ in line[<NUM_LIT:1>:]]<EOL><DEDENT>while len(line) < len(out) + <NUM_LIT:1>:<EOL><INDENT>line.append("<STR_LIT>")<EOL><DEDENT>for i in range(len(out)):<EOL><INDENT>out[i][line[<NUM_LIT:0>]] = line[i+<NUM_LIT:1>].strip()<EOL><DEDENT>line = None<EOL><DEDENT><DEDENT>return out, line<EOL>
Generate dictionary from key/value pairs.