Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed an unused code path.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e2627d267d8b98c7466d2c149b58cc406a3a6599 1 parent e9d2763
@spookylukey spookylukey authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 django/template/defaulttags.py
View
6 django/template/defaulttags.py
@@ -482,15 +482,13 @@ def render(self, context):
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 "<WithNode>"
@@ -498,8 +496,6 @@ def __repr__(self):
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()
Please sign in to comment.
Something went wrong with that request. Please try again.