New submission from Johann Krauter <[email protected]>:
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,))
----------
components: XML
files: ElementTree.py
messages: 337463
nosy: Photoniker
priority: normal
severity: normal
status: open
title: xml ElementTree quotation marks of xml version string
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48193/ElementTree.py
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36233>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com