diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-11 17:40:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 17:40:05 (GMT) |
commit | bfc88d3418af6f4ef16aa306f12dd2d36ef957ae (patch) | |
tree | bb546ee3dff47d07ad43a542d8a03d59676f2f7d /Python/import.c | |
parent | 3f2113dd08a31bebdd9c9d697104dd592aefed71 (diff) | |
download | cpython-bfc88d3418af6f4ef16aa306f12dd2d36ef957ae.zip cpython-bfc88d3418af6f4ef16aa306f12dd2d36ef957ae.tar.gz cpython-bfc88d3418af6f4ef16aa306f12dd2d36ef957ae.tar.bz2 |
[3.9] gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903) (GH-92665)
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/import.c')
0 files changed, 0 insertions, 0 deletions