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
commit69672965cabf5f31d3f17c2095ba9685deafb0a8 (patch)
tree91bdd0b52e3fe032520f910ecc04b2184f2f7eed /utils.py
parenta20b20729bad9edfb9a97cb618f742d9a76266a5 (diff)
downloadpylint-69672965cabf5f31d3f17c2095ba9685deafb0a8.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 068afce..36194b7 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.