Skip to content

Commit 7a7fe17

Browse files
Add NEWS and What's New entries
1 parent 95faf7f commit 7a7fe17

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Doc/whatsnew/3.16.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ tarfile
186186
* The undocumented and unused :attr:`!tarfile.TarFile.tarfile` attribute
187187
has been deprecated since Python 3.13.
188188

189+
xml.etree.ElementTree
190+
---------------------
191+
192+
* The undocumented :meth:`!xml.etree.ElementTree.ElementTree.write_c14n` method
193+
and the support of ``method="c14n"`` in
194+
:meth:`~xml.etree.ElementTree.ElementTree.write` and
195+
:func:`~xml.etree.ElementTree.tostring`.
196+
They never worked and always raised :exc:`ValueError`.
197+
Use :func:`xml.etree.ElementTree.canonicalize` instead.
198+
(Contributed by Daniel Hillier in :gh:`118318`.)
199+
189200
.. Add removals above alphabetically, not here at the end.
190201
191202
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Remove the ``write_c14n()`` method of :class:`xml.etree.ElementTree.ElementTree`
2+
and the support of ``method="c14n"`` in :meth:`~xml.etree.ElementTree.ElementTree.write`
3+
and :func:`~xml.etree.ElementTree.tostring`. They never worked and always
4+
raised :exc:`ValueError`. Use :func:`xml.etree.ElementTree.canonicalize`
5+
instead.

0 commit comments

Comments
 (0)