1 from regexes import re_parse_lintian
3 def parse_lintian_output(output):
5 Parses Lintian output and returns a generator with the data.
7 >>> list(parse_lintian_output('W: pkgname: some-tag path/to/file'))
8 [('W', 'pkgname', 'some-tag', 'path/to/file')]
11 for line in output.split('\n'):
12 m = re_parse_lintian.match(line)