diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-11 17:36:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 17:36:52 (GMT) |
commit | 20fec2c265f7f47304041abcafdffe7de9937682 (patch) | |
tree | e3887769d057cd710dddc29e666ac245b2c899c8 /Python/errors.c | |
parent | 5ea8a93e1a35bf08153b5d02e9a332cd9b531241 (diff) | |
download | cpython-20fec2c265f7f47304041abcafdffe7de9937682.zip cpython-20fec2c265f7f47304041abcafdffe7de9937682.tar.gz cpython-20fec2c265f7f47304041abcafdffe7de9937682.tar.bz2 |
[3.11] gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903) (GH-92663)
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.
(cherry picked from commit 707839b0fe02ba2c891a40f40e7a869d84c2c9c5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions