Fix for change in list handling behavior in Python 3
authorAaron Traas <aaron@traas.org>
Mon, 3 Dec 2018 18:48:00 +0000 (13:48 -0500)
committerAaron Traas <aaron@traas.org>
Mon, 3 Dec 2018 18:48:00 +0000 (13:48 -0500)
tests/coverage_dungeon.py

index 365995ce644598d9178f8cd976e8a19b50a052c9..97e642daa9f154e5853cf96e3776519c7043b9ca 100755 (executable)
@@ -223,7 +223,7 @@ if __name__ == "__main__":
             category["percent"] = (category["covered"] / float(category["total"])) * 100
 
             # render section header
-            cat_messages = sorted(category["messages"].items())
+            cat_messages = list(category["messages"].items())
             cat_keys = cat_messages[0][1].keys()
             headers_html = ""
             colspan = 10 - len(cat_keys)