From e2627d267d8b98c7466d2c149b58cc406a3a6599 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 10 Mar 2011 18:42:33 +0000 Subject: [PATCH] Removed an unused code path. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15796 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/defaulttags.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index ff97d92d75..8f46c7ff11 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -482,15 +482,13 @@ class WidthRatioNode(Node): return str(int(round(ratio))) class WithNode(Node): - def __init__(self, var, name, nodelist, extra_context=None, - isolated_context=False): + def __init__(self, var, name, nodelist, extra_context=None): self.nodelist = nodelist # var and name are legacy attributes, being left in case they are used # by third-party subclasses of this Node. self.extra_context = extra_context or {} if name: self.extra_context[name] = var - self.isolated_context = isolated_context def __repr__(self): return "" @@ -498,8 +496,6 @@ class WithNode(Node): def render(self, context): values = dict([(key, val.resolve(context)) for key, val in self.extra_context.iteritems()]) - if self.isolated_context: - return self.nodelist.render(Context(values)) context.update(values) output = self.nodelist.render(context) context.pop()