SIGN IN SIGN UP

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.
S
Serhiy Storchaka committed
d7db9dc3cc5b44d0b4ce000571fecf58089a01ec
Parent: 8352e32
Committed by GitHub <noreply@github.com> on 6/14/2022, 4:25:33 AM