[narval] fix pylint checker for pylint 1.4 (closes #4771946)
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 19 Dec 2014 13:37:34 +0100
changeset 1670 f6b937183620
parent 1669 5e6dc151c85f
child 1671 5b8446d9b559
child 1672 6aa492d6bdbe
[narval] fix pylint checker for pylint 1.4 (closes #4771946) Our custom reporter was not calling its parent's __init__, leading to a crash when add_message tried to access path_strip_prefix.
_narval/checkers/apycot/python.py
--- a/_narval/checkers/apycot/python.py	Mon Nov 10 16:06:08 2014 +0100
+++ b/_narval/checkers/apycot/python.py	Fri Dec 19 13:37:34 2014 +0100
@@ -544,6 +544,7 @@
         __implements__ = IReporter
 
         def __init__(self, writer, basepath, categories):
+            super(MyLintReporter, self).__init__()
             self.writer = writer
             self.categories = set(categories)
             self._to_remove = len(basepath) + 1 # +1 for the leading "/"