diff -r fb0ef164f536 -r 698ae46f40a4 eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py Sat May 01 14:27:20 2021 +0200 @@ -107,9 +107,11 @@ if nodeType.startswith('Import'): prefix = "" - if nodeType == "ImportFrom": - if context.node.module is not None: - prefix = context.node.module + "." + if ( + nodeType == "ImportFrom" and + context.node.module is not None + ): + prefix = context.node.module + "." for code in _blacklists: qualnames, severity = _blacklists[code]