Skip to content
Snippets Groups Projects
Unverified Commit d7db9dc3 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub
Browse files

gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426)

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.
parent 8352e322
No related branches found
No related tags found
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