Skip to content

Commit

Permalink
fix string_format sanity check (ansible#51780)
Browse files Browse the repository at this point in the history
* newer version of Pylint moved the impl; use conditional import to find for new/old
  • Loading branch information
nitzmahone authored Feb 6, 2019
1 parent 06d83ba commit 6654c7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/sanity/pylint/plugins/string_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
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)

Expand Down

0 comments on commit 6654c7a

Please sign in to comment.