Skip to content

Commit

Permalink
Support pylint 2.0 UnknownMessage rename to UnknownMessageError
Browse files Browse the repository at this point in the history
  • Loading branch information
jamlamberti committed Mar 10, 2017
1 parent c893531 commit aee69f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion prospector/tools/pylint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import sys
import os
from pylint.config import find_pylintrc
from pylint.utils import UnknownMessage
try:
from pylint.utils import UnknownMessage
except ImportError:
from pylint.utils import UnknownMessageError as UnknownMessage
from prospector.message import Message, Location
from prospector.tools.base import ToolBase
from prospector.tools.pylint.collector import Collector
Expand Down
5 changes: 4 additions & 1 deletion prospector/tools/pylint/collector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from __future__ import absolute_import
from pylint.reporters import BaseReporter
from pylint.utils import UnknownMessage
try:
from pylint.utils import UnknownMessage
except ImportError:
from pylint.utils import UnknownMessageError as UnknownMessage
from prospector.message import Location, Message


Expand Down

0 comments on commit aee69f4

Please sign in to comment.