Use Python 3, not 2.
[open-adventure.git] / tests / coverage_dungeon.py
index 365995ce644598d9178f8cd976e8a19b50a052c9..439edad30ac1c2f7234c4b1e9bd6c4b2f89ab4a0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # This is the open-adventure dungeon text coverage report generator. It
 # consumes a YAML description of the dungeon and determines whether the
@@ -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)