Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ea2a63

Browse files
committed
whatsnew: deprecation of ElementTree XMLParser *html* and iterparse *parser*.
#17741
1 parent 30781e9 commit 9ea2a63

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Doc/library/xml.etree.elementtree.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ XMLParser Objects
952952
specified in the XML file.
953953

954954
.. deprecated:: 3.4
955-
The *html* argument.
955+
The *html* argument. The remaining arguments should be passed via
956+
keywword to prepare for the removal of the *html* argument.
956957

957958
.. method:: close()
958959

Doc/whatsnew/3.4.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,11 @@ Deprecations in the Python API
20572057
appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline*
20582058
argument.
20592059

2060+
* The *parser* argument of :func:`~xml.etree.ElementTree.iterparse` has
2061+
been deprecated, as has the *html* argument of
2062+
:func:`~xml.etree.ElementTree.XMLParser`. To prepare for the removal of the
2063+
latter, all arguments to ``XMLParser`` should be passed by keyword.
2064+
20602065

20612066
Deprecations in the C API
20622067
-------------------------

0 commit comments

Comments
 (0)