-
- Downloads
gh-91810: Fix regression with writing an XML declaration with...
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93791) Suppress writing an XML declaration in open files in ElementTree.write() with encoding='unicode' and xml_declaration=None. If file patch is passed to ElementTree.write() with encoding='unicode', always open a new file in UTF-8. (cherry picked from commit d7db9dc3) Co-authored-by:Serhiy Storchaka <storchaka@gmail.com>
Showing
- Lib/test/test_xml_etree.py 3 additions, 13 deletionsLib/test/test_xml_etree.py
- Lib/xml/etree/ElementTree.py 5 additions, 7 deletionsLib/xml/etree/ElementTree.py
- Misc/NEWS.d/next/Library/2022-06-02-08-40-58.gh-issue-91810.Gtk44w.rst 2 additions, 0 deletions...ext/Library/2022-06-02-08-40-58.gh-issue-91810.Gtk44w.rst
Loading
Please register or sign in to comment