diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-24 12:03:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-24 12:03:34 +0300 |
| commit | 02ec92fa7b1dddc23d479ee0b87dc283793505a8 (patch) | |
| tree | 4fc90891da617efbc74239d9dc62eef44f3aa5ff /Doc/whatsnew | |
| parent | c5734998d91e9953fd179ba6ed7015b6343e8191 (diff) | |
| download | cpython-git-02ec92fa7b1dddc23d479ee0b87dc283793505a8.tar.gz | |
bpo-29209: Remove old-deprecated features in ElementTree. (GH-6769)
Also make getchildren() and getiterator() emitting
a DeprecationWarning instead of PendingDeprecationWarning.
Diffstat (limited to 'Doc/whatsnew')
| -rw-r--r-- | Doc/whatsnew/3.8.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index c6ecebc746..3f515357e9 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -158,6 +158,11 @@ Build and C API Changes Deprecated ========== +* Deprecated methods ``getchildren()`` and ``getiterator()`` in + the :mod:`~xml.etree.ElementTree` module emit now a + :exc:`DeprecationWarning` instead of :exc:`PendingDeprecationWarning`. + They will be removed in Python 3.9. + (Contributed by Serhiy Storchaka in :issue:`29209`.) Removed @@ -173,6 +178,14 @@ Removed * ``filemode`` function is removed from :mod:`tarfile` module. It is not documented and deprecated since Python 3.3. +* The :class:`~xml.etree.ElementTree.XMLParser` constructor no longer accepts + the *html* argument. It never had effect and was deprecated in Python 3.4. + All other parameters are now :ref:`keyword-only <keyword-only_parameter>`. + (Contributed by Serhiy Storchaka in :issue:`29209`.) + +* Removed the ``doctype()`` method of :class:`~xml.etree.ElementTree.XMLParser`. + (Contributed by Serhiy Storchaka in :issue:`29209`.) + Porting to Python 3.8 ===================== @@ -204,6 +217,13 @@ Changes in the Python API a database if it does not exist. (Contributed by Serhiy Storchaka in :issue:`32749`.) +* The ``doctype()`` method defined in a subclass of + :class:`~xml.etree.ElementTree.XMLParser` will no longer be called and will + cause emitting a :exc:`RuntimeWarning` instead of a :exc:`DeprecationWarning`. + Define the :meth:`doctype() <xml.etree.ElementTree.TreeBuilder.doctype>` + method on a target for handling an XML doctype declaration. + (Contributed by Serhiy Storchaka in :issue:`29209`.) + * A :exc:`RuntimeError` is now raised when the custom metaclass doesn't provide the ``__classcell__`` entry in the namespace passed to ``type.__new__``. A :exc:`DeprecationWarning` was emitted in Python |
