comparison bitten/build/pythontools.py @ 915:e36f9b446976

Wrap lint report messages in a msg tag (includes a test and a documentation update). Fixes #547.
author hodgestar
date Mon, 23 May 2011 09:28:19 +0000
parents 7c80375d4817
children
comparison
equal deleted inserted replaced
913:5bfdd7348d6f 915:e36f9b446976
171 lineno = int(match.group('line')) 171 lineno = int(match.group('line'))
172 tag = match.group('tag') 172 tag = match.group('tag')
173 problems.append(xmlio.Element('problem', category=category, 173 problems.append(xmlio.Element('problem', category=category,
174 type=msg_type, tag=tag, 174 type=msg_type, tag=tag,
175 line=lineno, file=filename)[ 175 line=lineno, file=filename)[
176 match.group('msg') or '' 176 xmlio.Element('msg')[match.group('msg') or '']
177 ]) 177 ])
178 ctxt.report('lint', problems) 178 ctxt.report('lint', problems)
179 finally: 179 finally:
180 fd.close() 180 fd.close()
181 except IOError, e: 181 except IOError, e:
Copyright (C) 2012-2017 Edgewall Software