From 69069a443a906dd4060a8047e683657d40b4c383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Wed, 8 Feb 2023 11:17:58 +0100 Subject: [PATCH] Refs #7430 -- Removed broken Template.__iter__(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Anders Hovmöller --- django/template/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/django/template/base.py b/django/template/base.py index afbdc7391d5..e83db6185c1 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -153,10 +153,6 @@ class Template: self.source = str(template_string) # May be lazy. self.nodelist = self.compile_nodelist() - def __iter__(self): - for node in self.nodelist: - yield from node - def __repr__(self): return '<%s template_string="%s...">' % ( self.__class__.__qualname__,