bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)

This commit is contained in:
Alex Prengère 2021-03-30 23:11:29 +02:00 committed by GitHub
parent 73b20ae2fb
commit 51a85ddce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View file

@ -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*."""