def parse(self, lines):
patterns = [re.compile(r'<STR_LIT>'),<EOL>re.compile(r'<STR_LIT>')]<EOL>for i, line in enumerate(lines):<EOL><INDENT>if i % <NUM_LIT:2> == <NUM_LIT:0>:<EOL><INDENT>path, line_nr = patterns[<NUM_LIT:0>].match(line).groups()<EOL><DEDENT>else:<EOL><INDENT>msg = patterns[<NUM_LIT:1>].match(line).group(<NUM_LIT:1>)<EOL>yield LinterOutput(self.name, path, msg, line_nr)<EOL><DEDENT><DEDENT>
Get :class:`base.Result` parameters using regex.

        There are 2 lines for each pydocstyle result:
            1. Filename and line number;
            2. Message for the problem found.