def render(self, context):
        try:
            output = force_unicode(self.filter_expression.resolve(context))
        except __HOLE__:
            # Unicode conversion can fail sometimes for reasons out of our
            # control (e.g. exception rendering). In that case, we fail quietly.
            return ''
        if (context.autoescape and not isinstance(output, SafeData)) or isinstance(output, EscapeData):
            return force_unicode(escape(output))
        else:
            return force_unicode(output)
dataset/ETHPy150Open dcramer/django-compositepks/django/template/__init__.py/VariableNode.render