summaryrefslogtreecommitdiff
path: root/reporters
diff options
context:
space:
mode:
authorPete <sneakypete81@gmail.com>2013-09-07 17:23:36 +0100
committerPete <sneakypete81@gmail.com>2013-09-07 17:23:36 +0100
commit13e8d34b15fb5e9a8fc0a9803b655a095715d0b7 (patch)
tree985af0132640a5f884bbcb4408150a327183b8a7 /reporters
parent2912d67f63689bcd684a41bd73fff234db4f0b76 (diff)
downloadpylint-13e8d34b15fb5e9a8fc0a9803b655a095715d0b7.tar.gz
Updated GUI reporter to use Message object.
Removed unused msgs[] attribute.
Diffstat (limited to 'reporters')
-rw-r--r--reporters/guireporter.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/reporters/guireporter.py b/reporters/guireporter.py
index 9f3ae79..e69b397 100644
--- a/reporters/guireporter.py
+++ b/reporters/guireporter.py
@@ -3,7 +3,7 @@
import sys
from pylint.interfaces import IReporter
-from pylint.reporters import BaseReporter
+from pylint.reporters import BaseReporter, Message
from logilab.common.ureports import TextWriter
@@ -16,16 +16,14 @@ 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"""
- filename, module, obj, line, col_offset = location
- msg = Message(self, msg_id, location, msg)
- full_msg = [msg.C, msg_id, filename, module, obj, str(line), msg]
- self.msgs += [[sigle, module, obj, str(line)]]
- self.gui.msg_queue.put(full_msg)
+ # filename, module, obj, line, col_offset = location
+ # message = [msg_id[0], msg_id, filename, module, obj, str(line), msg]
+ message = Message(self, msg_id, location, msg)
+ self.gui.msg_queue.put(message)
def _display(self, layout):
"""launch layouts display"""