-#!/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
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)