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:
Serhiy Storchaka 2019-09-01 11:18:35 +03:00 committed by GitHub
parent c5b242f87f
commit f02ea6225b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 213 deletions

View file

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