mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
whatsnew: deprecation of ElementTree XMLParser *html* and iterparse *parser*.
#17741
This commit is contained in:
parent
30781e93b0
commit
9ea2a630fe
2 changed files with 7 additions and 1 deletions
|
@ -952,7 +952,8 @@ XMLParser Objects
|
||||||
specified in the XML file.
|
specified in the XML file.
|
||||||
|
|
||||||
.. deprecated:: 3.4
|
.. deprecated:: 3.4
|
||||||
The *html* argument.
|
The *html* argument. The remaining arguments should be passed via
|
||||||
|
keywword to prepare for the removal of the *html* argument.
|
||||||
|
|
||||||
.. method:: close()
|
.. method:: close()
|
||||||
|
|
||||||
|
|
|
@ -2057,6 +2057,11 @@ Deprecations in the Python API
|
||||||
appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline*
|
appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline*
|
||||||
argument.
|
argument.
|
||||||
|
|
||||||
|
* The *parser* argument of :func:`~xml.etree.ElementTree.iterparse` has
|
||||||
|
been deprecated, as has the *html* argument of
|
||||||
|
:func:`~xml.etree.ElementTree.XMLParser`. To prepare for the removal of the
|
||||||
|
latter, all arguments to ``XMLParser`` should be passed by keyword.
|
||||||
|
|
||||||
|
|
||||||
Deprecations in the C API
|
Deprecations in the C API
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue