mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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 <slaznick@redhat.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user