diff 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
line wrap: on
line diff
--- a/bitten/build/pythontools.py
+++ b/bitten/build/pythontools.py
@@ -173,7 +173,7 @@
                     problems.append(xmlio.Element('problem', category=category,
                                                   type=msg_type, tag=tag,
                                                   line=lineno, file=filename)[
-                        match.group('msg') or ''
+                        xmlio.Element('msg')[match.group('msg') or '']
                     ])
             ctxt.report('lint', problems)
         finally:
Copyright (C) 2012-2017 Edgewall Software