def _parse(self):
cur_ver = None<EOL>cur_line = None<EOL>for line in self.content:<EOL><INDENT>m = re.match('<STR_LIT>', line)<EOL>if m:<EOL><INDENT>cur_ver = m.group(<NUM_LIT:1>)<EOL>self.versions.append(cur_ver)<EOL>self.entries[cur_ver] = []<EOL>cur_entry = self.entries[cur_ver]<EOL>if self.latest_version is None or StrictVersion(m.group(<NUM_LIT:1>)) > StrictVersion(self.latest_version):<EOL><INDENT>self.latest_version = m.group(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>elif cur_ver:<EOL><INDENT>m = re.match('<STR_LIT>', line)<EOL>if m:<EOL><INDENT>cur_entry.append(m.group(<NUM_LIT:1>).strip())<EOL><DEDENT>elif not re.match('<STR_LIT>', line) and re.match('<STR_LIT>', line):<EOL><INDENT>cur_entry[-<NUM_LIT:1>] += "<STR_LIT:U+0020>" + line.strip()<EOL><DEDENT><DEDENT><DEDENT>
Parse content of NEWS file