def _parse_summary(self):
if self._is_at_section():<EOL><INDENT>return<EOL><DEDENT>while True:<EOL><INDENT>summary = self._doc.read_to_next_empty_line()<EOL>summary_str = "<STR_LIT:U+0020>".join([s.strip() for s in summary]).strip()<EOL>if re.compile('<STR_LIT>').match(summary_str):<EOL><INDENT>self['<STR_LIT>'] = summary_str<EOL>if not self._is_at_section():<EOL><INDENT>continue<EOL><DEDENT><DEDENT>break<EOL><DEDENT>if summary is not None:<EOL><INDENT>self['<STR_LIT>'] = summary<EOL><DEDENT>if not self._is_at_section():<EOL><INDENT>self['<STR_LIT>'] = self._read_to_next_section()<EOL><DEDENT>
Grab signature (if given) and summary