FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.9] gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) by miss-islington · Pull Request #93791 · python/cpython · GitHub

/ cpython Public

[3.9] gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) - #93791

Merged
ambv merged 1 commit into
python:3.9from
miss-islington:backport-d7db9dc-3.9
Jun 16, 2022
Merged

[3.9] gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426)#93791
ambv merged 1 commit into
python:3.9from
miss-islington:backport-d7db9dc-3.9

Conversation

Copy link
Copy Markdown
Contributor

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 d7db9dc)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ncoding='unicode' (pythonGH-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.
(cherry picked from commit d7db9dc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

1 similar comment

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

ambv merged commit 893adbf into python:3.9 Jun 16, 2022
miss-islington deleted the backport-d7db9dc-3.9 branch June 16, 2022 10:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL