diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-09-11 15:03:46 -0700 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-09-11 15:03:46 -0700 |
commit | 4684e4b86a2f13ea2317125892efac5192c88721 (patch) | |
tree | 0c3a46c9d24b51c16494a4f19a921013b09b39a1 | |
parent | 07b4dcadc26ca3d906dd8572624acb306559156c (diff) | |
parent | df4e833b6e7d4aefb929eb962b063a5d6be13369 (diff) | |
download | markdown-4684e4b86a2f13ea2317125892efac5192c88721.tar.gz markdown-4684e4b86a2f13ea2317125892efac5192c88721.tar.bz2 markdown-4684e4b86a2f13ea2317125892efac5192c88721.zip |
Merge pull request #249 from lvella/master
Fix: "AttributeError: 'dict_items' object has no attribute 'sort'"
-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 |