diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-10-28 18:18:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 18:18:22 (GMT) |
commit | e3685fd5fdd8808acda81bfc12fb9702d4b59a60 (patch) | |
tree | 930b05ba14510edd10fbec2840ee3e953cae7e39 /Lib/xml | |
parent | 18d57b4d6262bf96b5ac307bd84837c29ea04083 (diff) | |
download | cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.zip cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.tar.gz cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.tar.bz2 |
bpo-34160: Preserve user specified order of Element attributes (GH-10163)
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index 85586d0..d4df83f 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -923,7 +923,7 @@ def _serialize_xml(write, elem, qnames, namespaces, k, _escape_attrib(v) )) - for k, v in sorted(items): # lexical order + for k, v in items: if isinstance(k, QName): k = k.text if isinstance(v, QName): |