third_party/jinja2/compiler.py
def _output_child_to_const(self, node, frame, finalize):
        """Try to optimize a child of an ``Output`` node by trying to
        convert it to constant, finalized data at compile time.

        If :exc:`Impossible` is raised, the node is not constant and
        will be evaluated at runtime. Any other exception will also be
        evaluated at runtime for easier debugging.
        """
        const = node.as_const(frame.eval_ctx)

        if frame.eval_ctx.autoescape:
            const = escape(const)

        # Template data doesn't go through finalize.
        if isinstance(node, nodes.TemplateData):
            return text_type(const)

        return finalize.const(const)
Try to optimize a child of an ``Output`` node by trying to
        convert it to constant, finalized data at compile time.

        If :exc:`Impossible` is raised, the node is not constant and
        will be evaluated at runtime. Any other exception will also be
        evaluated at runtime for easier debugging.
        
Try to optimize a child of an ``Output`` node by trying to
convert it to constant, finalized data at compile time.

If :exc:`Impossible` is raised, the node is not constant and
will be evaluated at runtime. Any other exception will also be
evaluated at runtime for easier debugging.
Try to optimize a child of an ` ` Output ` ` node by trying to convert it to constant finalized data at compile time . If : exc : ` Impossible ` is raised the node is not constant and will be evaluated at runtime . Any other exception will also be evaluated at runtime for easier debugging .
def _output_child_to_const(self, node, frame, finalize):
        const = node.as_const(frame.eval_ctx)
        if frame.eval_ctx.autoescape:
            const = escape(const)
        if isinstance(node, nodes.TemplateData):
            return text_type(const)
        return finalize.const(const)
def _output_child_to_const ( self , node , frame , finalize ) : const = node . as_const ( frame . eval_ctx ) if frame . eval_ctx . autoescape : const = escape ( const ) if isinstance ( node , nodes . TemplateData ) : return text_type ( const ) return finalize . const ( const )
Try to optimize a child of an ``Output`` node by trying to
convert it to constant, finalized data at compile time.
Try to optimize a child of an ` ` Output ` ` node by trying to convert it to constant finalized data at compile time .
"""Try to optimize a child of an ``Output`` node by trying to
        convert it to constant, finalized data at compile time.

        If :exc:`Impossible` is raised, the node is not constant and
        will be evaluated at runtime. Any other exception will also be
        evaluated at runtime for easier debugging.
        """ # Template data doesn't go through finalize.
self
node
frame
finalize