summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorAlex Prengère <2138730+alexprengere@users.noreply.github.com>2021-03-30 21:11:29 (GMT)
committerGitHub <noreply@github.com>2021-03-30 21:11:29 (GMT)
commit51a85ddce8b336addcb61b96f04c9c5edef07296 (patch)
tree5206be9be09a2523341723e4478c731bee24accb /Lib/xml
parent73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2 (diff)
downloadcpython-51a85ddce8b336addcb61b96f04c9c5edef07296.zip
cpython-51a85ddce8b336addcb61b96f04c9c5edef07296.tar.gz
cpython-51a85ddce8b336addcb61b96f04c9c5edef07296.tar.bz2
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
Diffstat (limited to 'Lib/xml')
-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 168418e..9924680 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*."""