mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Kill some more dead code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -607,7 +607,8 @@ def unordered_list(value, autoescape=None):
|
||||
if second_item == []:
|
||||
return [first_item], True
|
||||
try:
|
||||
it = iter(second_item) # see if second item is iterable
|
||||
# see if second item is iterable
|
||||
iter(second_item)
|
||||
except TypeError:
|
||||
return list_, False
|
||||
old_style_list = True
|
||||
|
||||
@@ -51,7 +51,7 @@ def token_kwargs(bits, parser, support_legacy=False):
|
||||
|
||||
kwargs = {}
|
||||
while bits:
|
||||
if kwarg_format:
|
||||
if kwarg_format:
|
||||
match = kwarg_re.match(bits[0])
|
||||
if not match or not match.group(1):
|
||||
return kwargs
|
||||
@@ -276,7 +276,6 @@ class IfChangedNode(Node):
|
||||
compare_to = None
|
||||
|
||||
if compare_to != self._last_seen:
|
||||
firstloop = (self._last_seen == None)
|
||||
self._last_seen = compare_to
|
||||
content = self.nodelist_true.render(context)
|
||||
return content
|
||||
|
||||
Reference in New Issue
Block a user