

def render(self, context):
    compiled_parent = self.get_parent(context)
    if (BLOCK_CONTEXT_KEY not in context.render_context):
        context.render_context[BLOCK_CONTEXT_KEY] = BlockContext()
    block_context = context.render_context[BLOCK_CONTEXT_KEY]
    block_context.add_blocks(self.blocks)
    for node in compiled_parent.nodelist:
        if (not isinstance(self, TextNode)):
            if (not isinstance(node, ExtendsNode)):
                blocks = dict([(n.name, n) for n in compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
                block_context.add_blocks(blocks)
            break
    return compiled_parent._render(context)

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/template/loader_tags.py ExtendsNode.render/VarMisuse@77/100 `node`->`self`