--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/jinja2Templates.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/jinja2Templates.py Sat May 01 14:27:20 2021 +0200 @@ -72,15 +72,10 @@ value = getattr(node, 'value', None) if ( getattr(value, 'id', None) == 'True' or - getattr(value, 'value', None) is True - ): - return - - # Check if select_autoescape function is used. - elif ( - isinstance(value, ast.Call) and - (getattr(value.func, 'id', None) == - 'select_autoescape') + getattr(value, 'value', None) is True or + (isinstance(value, ast.Call) and + (getattr(value.func, 'id', None) == + 'select_autoescape')) ): return