if context.autoescape is true and value is not an instance of SafeData, or value is an instance of EscapeData,
if ( ( context . autoescape and not isinstance ( value , SafeData ) ) or isinstance ( value , EscapeData ) ) :