]> granicus.if.org Git - python/commit
bpo-36227: ElementTree.tostring() default_namespace and xml_declaration arguments...
authorBernt Røskar Brenna <bernt.brenna@gmail.com>
Sun, 14 Apr 2019 08:07:02 +0000 (10:07 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 14 Apr 2019 08:07:02 +0000 (10:07 +0200)
commitffca16e25a70fd44a87b13b379b5ec0c7a11e926
tree6855e55ff815720daf989ebc6e8eab778b197f73
parent830b43d03cc47a27a22a50d777f23c8e60820867
bpo-36227: ElementTree.tostring() default_namespace and xml_declaration arguments (GH-12225)

Add new keyword arguments "default_namespace" and "xml_declaration" to functions ET.tostring() and ET.tostringlist(), as known from ElementTree.write().
Doc/library/xml.etree.elementtree.rst
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2019-03-07-20-02-18.bpo-36227.i2Z1XR.rst [new file with mode: 0644]