commit | e3685fd5fdd8808acda81bfc12fb9702d4b59a60 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Sun Oct 28 11:18:22 2018 -0700 |
committer | GitHub <noreply@github.com> | Sun Oct 28 11:18:22 2018 -0700 |
tree | 930b05ba14510edd10fbec2840ee3e953cae7e39 | |
parent | 18d57b4d6262bf96b5ac307bd84837c29ea04083 [diff] [blame] |
bpo-34160: Preserve user specified order of Element attributes (GH-10163)
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 @@ 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):