Skip to content

Commit 0d160d3

Browse files
kovanclaude
andcommitted
gh-128805: Clarify cElementTree deprecation notice
The deprecation notice for xml.etree.cElementTree was confusing because it didn't explain what cElementTree is. This change clarifies that cElementTree is an alias for ElementTree and that users should use xml.etree.ElementTree directly instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e2c9bd commit 0d160d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/xml.etree.elementtree.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ for parsing and creating XML data.
1717
This module will use a fast implementation whenever available.
1818

1919
.. deprecated:: 3.3
20-
The :mod:`!xml.etree.cElementTree` module is deprecated.
20+
The :mod:`!xml.etree.cElementTree` module, which is an alias for
21+
:mod:`xml.etree.ElementTree`, is deprecated. Use :mod:`xml.etree.ElementTree`
22+
directly instead.
2123

2224

2325
.. note::

0 commit comments

Comments
 (0)