Fix crash with new pylint (closes #2465604) stable
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 30 Aug 2012 15:15:04 +0200
branchstable
changeset 831 7f222c8bc649
parent 830 5b61a66c2d3d
child 832 fbb7eb24f3ad
child 834 2b17abd6f7c9
Fix crash with new pylint (closes #2465604) The pylint checker was exploding due to missing on_set_current_module method.
_apycotlib/checkers/python.py
--- a/_apycotlib/checkers/python.py	Wed Apr 11 12:10:47 2012 +0200
+++ b/_apycotlib/checkers/python.py	Thu Aug 30 15:15:04 2012 +0200
@@ -525,9 +525,10 @@
     from pylint.lint import PyLinter
     from pylint.__pkginfo__ import version as pylint_version
     from pylint.interfaces import IReporter
+    from pylint.reporters import BaseReporter
     register('checker', PyLintChecker)
 
-    class MyLintReporter(object):
+    class MyLintReporter(BaseReporter):
         """a partial pylint writer (implements only the message method, not
         methods necessary to display layouts
         """