From 5f640de76e57272d7b7707e710bbee19a8eda79a Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Fri, 26 May 2017 21:21:34 +0200 Subject: [PATCH] Pylint: fix ipa_forbidden_import checker Pylint 1.7 changed internals, so we have update our custom checker https://pagure.io/freeipa/issue/6874 Reviewed-By: Stanislav Laznicka --- pylint_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylint_plugins.py b/pylint_plugins.py index 472328cc4..b17e7db81 100644 --- a/pylint_plugins.py +++ b/pylint_plugins.py @@ -311,7 +311,7 @@ class IPAChecker(BaseChecker): self._forbidden_imports_stack = [] def _get_forbidden_import_rule(self, node): - path = node.source_file + path = node.path if path: path = os.path.abspath(path) while path.startswith(self._dir):