Skip to content
Snippets Groups Projects
Unverified Commit 893adbf0 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

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: default avatarSerhiy Storchaka <storchaka@gmail.com>
parent e8f2fe35
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment