8000 [REF] init: Compatibility with future pylint 2.0 · pylint-dev/pylint-plugin-utils@f0f7199 · GitHub
[go: up one dir, main page]

Skip to content < 8000 /span>

Commit f0f7199

Browse files
committed
[REF] init: Compatibility with future pylint 2.0
1 parent f63e704 commit f0f7199

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pylint_plugin_utils/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import sys
2-
from pylint.utils import UnknownMessage
2+
try:
3+
from pylint.utils import UnknownMessage
4+
except ImportError:
5+
from pylint.utils import UnknownMessageError as UnknownMessage
36

47

58
def get_class(module_name, kls):

0 commit comments

Comments
 (0)
0