* newer version of Pylint moved the impl; use conditional import to find for new/old
(cherry picked from commit 6654c7aeea
)
This commit is contained in:
parent
42c75b1015
commit
439af1d4e1
1 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,10 @@ from pylint.interfaces import IAstroidChecker
|
|||
from pylint.checkers import BaseChecker
|
||||
from pylint.checkers import utils
|
||||
from pylint.checkers.utils import check_messages
|
||||
from pylint.checkers.strings import parse_format_method_string
|
||||
try:
|
||||
from pylint.checkers.utils import parse_format_method_string
|
||||
except ImportError:
|
||||
from pylint.checkers.strings import parse_format_method_string
|
||||
|
||||
_PY3K = sys.version_info[:2] >= (3, 0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue