summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-10-15 14:30:13 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-10-15 14:30:13 +0300
commitc03fefdefba97e187f5458288227f4224ee53cc0 (patch)
tree29ebd239f004e793f01a15e07e3f4b129ca6e474 /utils.py
parent4ea910d67ccc0c96593a89a539791f97c5043284 (diff)
downloadpylint-git-c03fefdefba97e187f5458288227f4224ee53cc0.tar.gz
Add new '-j' option for running checks in sub-processes.
Patch by Michal Nowikowski.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 068afce6f..36194b735 100644
--- a/utils.py
+++ b/utils.py
@@ -94,6 +94,10 @@ class Message(_MsgBase):
cls, msg_id, symbol, msg, msg_id[0], MSG_TYPES[msg_id[0]],
confidence, *location)
+ def get_init_args(self):
+ location = (self.abspath, self.module, self.obj, self.line, self.column)
+ return (self.msg_id, self.symbol, location, self.msg, self.confidence)
+
def format(self, template):
"""Format the message according to the given template.