From: Aaron Traas Date: Sun, 16 Jul 2017 11:16:40 +0000 (-0400) Subject: Fixed YAML coverage generator in python3 X-Git-Tag: 1.3~79 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b47d95853b86f28a6da918473ade06f801daaed5;p=open-adventure.git Fixed YAML coverage generator in python3 --- diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index a9ea285..b5afa08 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -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: