From 1d071ec1aa8fa414bb96b41f7be8a1bd01079815 Mon Sep 17 00:00:00 2001 From: Keryn Knight Date: Sat, 29 Jan 2022 15:32:23 +0000 Subject: [PATCH] Removed unused Node.__iter__(). --- django/template/base.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/template/base.py b/django/template/base.py index 00f82835074..a1ab437eca5 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -978,9 +978,6 @@ class Node: ) raise - def __iter__(self): - yield self - def get_nodes_by_type(self, nodetype): """ Return a list of all nodes (within this node and its nodelist)