--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListCalls.py Tue Jun 16 17:44:28 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/blackListCalls.py Tue Jun 16 17:45:12 2020 +0200 @@ -18,6 +18,8 @@ import ast import fnmatch +import AstUtilities + _blacklists = { 'S301': ([ 'pickle.loads', @@ -197,7 +199,7 @@ func = context.node.func if isinstance(func, ast.Name) and func.id == '__import__': if len(context.node.args): - if isinstance(context.node.args[0], ast.Str): + if AstUtilities.isString(context.node.args[0]): name = context.node.args[0].s else: name = "UNKNOWN"