diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-26 10:20:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 10:20:33 (GMT) |
commit | 6fe7e0264f8cf3649520df11bbc1b5b4dc7a6f39 (patch) | |
tree | 0c548d2fda3cb8192753492bafcfcefbf7c8a9b7 /Python/getcompiler.c | |
parent | 86eb500068bb62b74a3865bf25d82ba0b027b943 (diff) | |
download | cpython-6fe7e0264f8cf3649520df11bbc1b5b4dc7a6f39.zip cpython-6fe7e0264f8cf3649520df11bbc1b5b4dc7a6f39.tar.gz cpython-6fe7e0264f8cf3649520df11bbc1b5b4dc7a6f39.tar.bz2 |
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93793)
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 d7db9dc3cc5b44d0b4ce000571fecf58089a01ec)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions