summaryrefslogtreecommitdiff
path: root/Lib/email/_parseaddr.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-16 09:16:42 -0700
committerGitHub <noreply@github.com>2022-06-16 18:16:42 +0200
commita27f3ccea5d83917ef5d9d4c6b43d65e96c06ed3 (patch)
tree53dd05865310333ba521f3d284d55109b4da4e86 /Lib/email/_parseaddr.py
parent5c10c365fef3ca480c930cb379bf1d0ebadcd911 (diff)
downloadcpython-git-a27f3ccea5d83917ef5d9d4c6b43d65e96c06ed3.tar.gz
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93790)
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 'Lib/email/_parseaddr.py')
0 files changed, 0 insertions, 0 deletions