def parse(self, lines):
cur_entry = None<EOL>for line in lines:<EOL><INDENT>kv_ = _key_value(line)<EOL>if len(kv_) > <NUM_LIT:1>:<EOL><INDENT>key, value = kv_<EOL>if key.lower() == "<STR_LIT:host>":<EOL><INDENT>cur_entry = value<EOL>self.hosts_.add(value)<EOL><DEDENT>self.lines_.append(ConfigLine(line=line, host=cur_entry, key=key, value=value))<EOL><DEDENT>else:<EOL><INDENT>self.lines_.append(ConfigLine(line=line))<EOL><DEDENT><DEDENT>
Parse lines from ssh config file