summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-09-01 08:18:35 (GMT)
committerGitHub <noreply@github.com>2019-09-01 08:18:35 (GMT)
commitf02ea6225bc3b71bd5fe66224d199a6e3e23b14d (patch)
treeffd4a17d92f18ad031f5aa221d67876ffe8e8865 /Doc
parentc5b242f87f31286ad38991bc3868cf4cfbf2b681 (diff)
downloadcpython-f02ea6225bc3b71bd5fe66224d199a6e3e23b14d.zip
cpython-f02ea6225bc3b71bd5fe66224d199a6e3e23b14d.tar.gz
cpython-f02ea6225bc3b71bd5fe66224d199a6e3e23b14d.tar.bz2
bpo-36543: Remove old-deprecated ElementTree features. (GH-12707)
Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.etree.elementtree.rst18
-rw-r--r--Doc/whatsnew/3.9.rst6
2 files changed, 6 insertions, 18 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index 6047e6e..1b4e2c9 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -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.
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index e20ae47..0a0b916 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -207,6 +207,12 @@ Removed
Use :meth:`~threading.Thread.is_alive()` instead.
(Contributed by Dong-hee Na in :issue:`37804`.)
+* Methods ``getchildren()`` and ``getiterator()`` in the
+ :mod:`~xml.etree.ElementTree` module have been removed. They were
+ deprecated in Python 3.2. Use functions :func:`list` and :func:`iter`
+ instead. The ``xml.etree.cElementTree`` module has been removed.
+ (Contributed by Serhiy Storchaka in :issue:`36543`.)
+
Porting to Python 3.9
=====================