diff -r 0572a215bd2f -r 5994b80b8760 eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListImports.py Sun Apr 11 18:45:10 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]