Commit 893adbf
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 <[email protected]>
1 parent e8f2fe3 commit 893adbf
File tree
3 files changed
+10
-20
lines changed- Lib
- test
- xml/etree
- Misc/NEWS.d/next/Library
3 files changed
+10
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3680 | 3680 | | |
3681 | 3681 | | |
3682 | 3682 | | |
3683 | | - | |
3684 | | - | |
3685 | | - | |
3686 | | - | |
3687 | | - | |
3688 | | - | |
3689 | | - | |
| 3683 | + | |
3690 | 3684 | | |
3691 | 3685 | | |
3692 | 3686 | | |
| |||
3701 | 3695 | | |
3702 | 3696 | | |
3703 | 3697 | | |
3704 | | - | |
3705 | | - | |
3706 | | - | |
| 3698 | + | |
3707 | 3699 | | |
3708 | 3700 | | |
3709 | 3701 | | |
3710 | 3702 | | |
3711 | 3703 | | |
3712 | | - | |
3713 | | - | |
3714 | | - | |
| 3704 | + | |
3715 | 3705 | | |
3716 | 3706 | | |
3717 | 3707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| 734 | + | |
734 | 735 | | |
735 | 736 | | |
736 | 737 | | |
| |||
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
767 | 765 | | |
768 | 766 | | |
769 | 767 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments