| Index: third_party/pylint/reporters/guireporter.py
|
| diff --git a/third_party/pylint/reporters/guireporter.py b/third_party/pylint/reporters/guireporter.py
|
| index 331eb179e44c1ee73ab7daff02ba4e02bd1322fd..13914ba8fc722ffc4559c31fe8530d04a6b08ba6 100644
|
| --- a/third_party/pylint/reporters/guireporter.py
|
| +++ b/third_party/pylint/reporters/guireporter.py
|
| @@ -3,7 +3,7 @@
|
| import sys
|
|
|
| from pylint.interfaces import IReporter
|
| -from pylint.reporters import BaseReporter, Message
|
| +from pylint.reporters import BaseReporter
|
| from logilab.common.ureports import TextWriter
|
|
|
|
|
| @@ -16,12 +16,20 @@ class GUIReporter(BaseReporter):
|
| def __init__(self, gui, output=sys.stdout):
|
| """init"""
|
| BaseReporter.__init__(self, output)
|
| + self.msgs = []
|
| self.gui = gui
|
|
|
| def add_message(self, msg_id, location, msg):
|
| """manage message of different type and in the context of path"""
|
| - message = Message(self, msg_id, location, msg)
|
| - self.gui.msg_queue.put(message)
|
| + module, obj, line = location[1:]
|
| + if self.include_ids:
|
| + sigle = msg_id
|
| + else:
|
| + sigle = msg_id[0]
|
| +
|
| + full_msg = [sigle, module, obj, str(line), msg]
|
| + self.msgs += [[sigle, module, obj, str(line)]]
|
| + self.gui.msg_queue.put(full_msg)
|
|
|
| def _display(self, layout):
|
| """launch layouts display"""
|
|
|