Fixed YAML coverage generator in python3
authorAaron Traas <aaron@traas.org>
Sun, 16 Jul 2017 11:16:40 +0000 (07:16 -0400)
committerAaron Traas <aaron@traas.org>
Sun, 16 Jul 2017 11:53:20 +0000 (07:53 -0400)
tests/coverage_dungeon.py

index a9ea285e9f03f4532aed34a1be334d30ea789057..b5afa08ce399f2f89fadef98c67f6e517d51bd6d 100755 (executable)
@@ -219,7 +219,7 @@ if __name__ == "__main__":
             category["percent"] = (category["covered"] / float(category["total"])) * 100
 
             # render section header
-            cat_keys = category["messages"].items()[0][1].keys()
+            cat_keys = list(category["messages"].items())[0][1].keys()
             headers_html = ""
             colspan = 10 - len(cat_keys)
             for key in cat_keys: