mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
This commit is contained in:
parent
73b20ae2fb
commit
51a85ddce8
4 changed files with 7 additions and 1 deletions
|
@ -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*."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue