This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Photoniker
Recipients Photoniker
Date 2019-03-08.10:08:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552039687.7.0.55265972714.issue36233@roundup.psfhosted.org>
In-reply-to
Content
I have the problem, that a xml file is save with the following xml declaration: 
<?xml version='1.0' encoding='utf-8'?> 
instead of 
<?xml version="1.0" encoding="utf-8"?>

I would propose to change the line number 769 in the ElementTree.py to: 
write("<?xml version=\"1.0\" encoding=\"%s\"?>\n" % (
                    declared_encoding,))
History
Date User Action Args
2019-03-08 10:08:07Photonikersetrecipients: + Photoniker
2019-03-08 10:08:07Photonikersetmessageid: <1552039687.7.0.55265972714.issue36233@roundup.psfhosted.org>
2019-03-08 10:08:07Photonikerlinkissue36233 messages
2019-03-08 10:08:07Photonikercreate