summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-08-16 17:57:50 -0700
committerTorsten Marek <shlomme@gmail.com>2014-08-16 17:57:50 -0700
commit7e204dfe753c84596d472adfbc51cd040e4632c5 (patch)
treedf3a2db3ee3ee764162aeb7893506f07573b4fc7 /utils.py
parentdf737168a764b1b418127ed8eadf8c148f47e118 (diff)
downloadpylint-git-7e204dfe753c84596d472adfbc51cd040e4632c5.tar.gz
Extend the reporter interface with a method that takes a message object, for better extendability.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 59a957a1a..0d2cd3cbf 100644
--- a/utils.py
+++ b/utils.py
@@ -376,7 +376,9 @@ class MessagesHandlerMixIn(object):
module, obj = get_module_and_frameid(node)
path = node.root().file
# add the message
- self.reporter.add_message(msgid, (path, module, obj, line or 1, col_offset or 0), msg)
+ self.reporter.handle_message(
+ Message(msgid, symbol,
+ (path, module, obj, line or 1, col_offset or 0), msg))
def print_full_documentation(self):
"""output a full documentation in ReST format"""