summaryrefslogtreecommitdiff
path: root/Lib/xml/etree/ElementTree.py
diff options
context:
space:
mode:
authorAlex Prengère <2138730+alexprengere@users.noreply.github.com>2021-03-30 23:11:29 +0200
committerGitHub <noreply@github.com>2021-03-31 00:11:29 +0300
commit51a85ddce8b336addcb61b96f04c9c5edef07296 (patch)
tree5206be9be09a2523341723e4478c731bee24accb /Lib/xml/etree/ElementTree.py
parent73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2 (diff)
downloadcpython-git-51a85ddce8b336addcb61b96f04c9c5edef07296.tar.gz
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 168418e466..99246800b9 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -252,7 +252,7 @@ class Element:
"""
for element in elements:
self._assert_is_element(element)
- self._children.extend(elements)
+ self._children.append(element)
def insert(self, index, subelement):
"""Insert *subelement* at position *index*."""