summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorAnders Hovmöller <boxed@killingar.net>2023-02-08 11:17:58 +0100
committerGitHub <noreply@github.com>2023-02-08 11:17:58 +0100
commit69069a443a906dd4060a8047e683657d40b4c383 (patch)
treeb2f69015bd8d5b03f05e2b64bb29d7a3ce1bc29b /django/template
parent325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10 (diff)
Refs #7430 -- Removed broken Template.__iter__().
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
Diffstat (limited to 'django/template')
-rw-r--r--django/template/base.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/template/base.py b/django/template/base.py
index afbdc7391d..e83db6185c 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__,