-
- Downloads
gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903)
ElementTree method write() and function tostring() now use the text file's encoding ("UTF-8" if not available) instead of locale encoding in XML declaration when encoding="unicode" is specified.
Showing
- Lib/test/test_xml_etree.py 15 additions, 16 deletionsLib/test/test_xml_etree.py
- Lib/xml/etree/ElementTree.py 9 additions, 14 deletionsLib/xml/etree/ElementTree.py
- Misc/NEWS.d/next/Library/2022-04-25-10-23-01.gh-issue-91810.DOHa6B.rst 5 additions, 0 deletions...ext/Library/2022-04-25-10-23-01.gh-issue-91810.DOHa6B.rst
Loading
Please register or sign in to comment