cpython/Lib/xml/etree
Miss Islington (bot) 893adbf001
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 d7db9dc3cc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-06-16 12:16:30 +02:00
..
ElementInclude.py [3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480) 2021-07-30 16:34:04 +02:00
ElementPath.py [3.9] Remove effbot urls (GH-26308). (#92162) 2022-05-02 12:22:05 -06:00
ElementTree.py gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93791) 2022-06-16 12:16:30 +02:00
__init__.py [3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480) 2021-07-30 16:34:04 +02:00
cElementTree.py bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117) (GH-20780) 2020-06-10 18:01:25 +02:00