aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-09-11 15:03:46 -0700
committerWaylan Limberg <waylan@gmail.com>2013-09-11 15:03:46 -0700
commit4684e4b86a2f13ea2317125892efac5192c88721 (patch)
tree0c3a46c9d24b51c16494a4f19a921013b09b39a1
parent07b4dcadc26ca3d906dd8572624acb306559156c (diff)
parentdf4e833b6e7d4aefb929eb962b063a5d6be13369 (diff)
downloadmarkdown-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.py2
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