diff options
author | Lucas Clemente Vella <lvella@gmail.com> | 2013-09-11 14:21:57 -0300 |
---|---|---|
committer | Lucas Clemente Vella <lvella@gmail.com> | 2013-09-11 14:21:57 -0300 |
commit | df4e833b6e7d4aefb929eb962b063a5d6be13369 (patch) | |
tree | 0c3a46c9d24b51c16494a4f19a921013b09b39a1 | |
parent | 07b4dcadc26ca3d906dd8572624acb306559156c (diff) | |
download | markdown-df4e833b6e7d4aefb929eb962b063a5d6be13369.tar.gz markdown-df4e833b6e7d4aefb929eb962b063a5d6be13369.tar.bz2 markdown-df4e833b6e7d4aefb929eb962b063a5d6be13369.zip |
Fix: "AttributeError: 'dict_items' object has no attribute 'sort'"
Happens on pip install with Python 3.
-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 |