

@contextmanager
def _request_context_bind_template(self, template):
    if (self.template is not None):
        raise RuntimeError('Context is already bound to a template')
    self.template = template
    processors = (template.engine.template_context_processors + self._processors)
    self.context_processors = OrderedDict()
    updates = {
        
    }
    for processor in processors:
        name = ('%s.%s' % (processor.__module__, processor.__name__))
        context = processor(self.request)
        self.context_processors[name] = self
        updates.update(context)
    self.dicts[self._processors_index] = updates
    try:
        (yield)
    finally:
        self.template = None
        self.dicts[self._processors_index] = {
            
        }

dataset/ETHPy150Open django-debug-toolbar/django-debug-toolbar/debug_toolbar/panels/templates/panel.py _request_context_bind_template/VarMisuse@108/142 `context`->`self`