]> granicus.if.org Git - python/commitdiff
whatsnew: deprecation of ElementTree XMLParser *html* and iterparse *parser*.
authorR David Murray <rdmurray@bitdance.com>
Mon, 10 Mar 2014 22:09:54 +0000 (18:09 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 10 Mar 2014 22:09:54 +0000 (18:09 -0400)
#17741

Doc/library/xml.etree.elementtree.rst
Doc/whatsnew/3.4.rst

index dfa2b71cf5816f455fca9df380fa9f7d48fbbce9..c6dbce062a82c5ef67b4ccea50f187fb7fa45755 100644 (file)
@@ -952,7 +952,8 @@ XMLParser Objects
    specified in the XML file.
 
    .. 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()
 
index 9666e3926ac8a087fe9a43d4a9bad4cdebc395f3..14a6eef83244cdc252396818a061921126da5dbf 100644 (file)
@@ -2057,6 +2057,11 @@ Deprecations in the Python API
   appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline*
   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
 -------------------------