diff options
Diffstat (limited to 'markdown/serializers.py')
-rw-r--r-- | markdown/serializers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/serializers.py b/markdown/serializers.py index 0c4ebcb..aa82806 100644 --- a/markdown/serializers.py +++ b/markdown/serializers.py @@ -152,7 +152,7 @@ def _serialize_html(write, elem, qnames, namespaces, format): write("<" + tag) items = elem.items() if items or namespaces: - items.sort() # lexical order + items = sorted(items) # lexical order for k, v in items: if isinstance(k, QName): k = k.text |