mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-36543: Remove old-deprecated ElementTree features. (GH-12707)
Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module.
This commit is contained in:
parent
c5b242f87f
commit
f02ea6225b
7 changed files with 19 additions and 213 deletions
|
@ -873,18 +873,6 @@ Element Objects
|
|||
in the expression into the given namespace.
|
||||
|
||||
|
||||
.. method:: getchildren()
|
||||
|
||||
.. deprecated-removed:: 3.2 3.9
|
||||
Use ``list(elem)`` or iteration.
|
||||
|
||||
|
||||
.. method:: getiterator(tag=None)
|
||||
|
||||
.. deprecated-removed:: 3.2 3.9
|
||||
Use method :meth:`Element.iter` instead.
|
||||
|
||||
|
||||
.. method:: insert(index, subelement)
|
||||
|
||||
Inserts *subelement* at the given position in this element. Raises
|
||||
|
@ -1019,12 +1007,6 @@ ElementTree Objects
|
|||
Same as :meth:`Element.findtext`, starting at the root of the tree.
|
||||
|
||||
|
||||
.. method:: getiterator(tag=None)
|
||||
|
||||
.. deprecated-removed:: 3.2 3.9
|
||||
Use method :meth:`ElementTree.iter` instead.
|
||||
|
||||
|
||||
.. method:: getroot()
|
||||
|
||||
Returns the root element for this tree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue