summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-29 17:31:04 (GMT)
committerGitHub <noreply@github.com>2018-10-29 17:31:04 (GMT)
commit3b05ad7be09af1d4510eb698b0a70d36387f296e (patch)
tree7d4a5ca447ea28c1993ae2a1cdbaa3b4f62a26bb /Lib/xml
parentc93c58b5d560cfe44d9884ff02c9b18e06333360 (diff)
downloadcpython-3b05ad7be09af1d4510eb698b0a70d36387f296e.zip
cpython-3b05ad7be09af1d4510eb698b0a70d36387f296e.tar.gz
cpython-3b05ad7be09af1d4510eb698b0a70d36387f296e.tar.bz2
bpo-34160: Preserve user specified order of Element attributes in html. (GH-10190)
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index d4df83f..c1cf483 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -979,7 +979,7 @@ def _serialize_html(write, elem, qnames, namespaces, **kwargs):
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):