From cf59392e16064d5d0e67d5d70e8047f27ccb858e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 5 Oct 2017 11:37:30 -0400 Subject: [PATCH] Removed unused ForNode.__iter__(). Unknown if it was ever used. --- django/template/defaulttags.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 797ebce4de..9c7d941126 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -151,10 +151,6 @@ class ForNode(Node): reversed_text, ) - def __iter__(self): - yield from self.nodelist_loop - yield from self.nodelist_empty - def render(self, context): if 'forloop' in context: parentloop = context['forloop']