mirror of https://github.com/django/django.git
Refs #7430 -- Removed broken Template.__iter__().
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
This commit is contained in:
parent
325c44ac6c
commit
69069a443a
|
@ -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__,
|
||||
|
|
Loading…
Reference in New Issue