Skip to content

Commit

Permalink
Merge pull request Python-Markdown#249 from lvella/master
Browse files Browse the repository at this point in the history
Fix: "AttributeError: 'dict_items' object has no attribute 'sort'"
  • Loading branch information
Waylan Limberg committed Sep 11, 2013
2 parents 07b4dca + df4e833 commit 4684e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4684e4b

Please sign in to comment.