diff options
| author | Anders Hovmöller <boxed@killingar.net> | 2023-02-08 11:17:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-08 11:17:58 +0100 |
| commit | 69069a443a906dd4060a8047e683657d40b4c383 (patch) | |
| tree | b2f69015bd8d5b03f05e2b64bb29d7a3ce1bc29b /django/template | |
| parent | 325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10 (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.py | 4 |
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__, |
