X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2Fcoverage_dungeon.py;h=46f0b11de4d6803a3752daba22e3d83f7731165c;hb=c5250b5f3f7e91c9af36877f2eeeb769bf3157b2;hp=97e642daa9f154e5853cf96e3776519c7043b9ca;hpb=dd1d69ad82da6106a67b7501b768807646b8015c;p=open-adventure.git diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index 97e642d..46f0b11 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -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 @@ -197,7 +197,7 @@ if __name__ == "__main__": # load DB try: with open(YAML_PATH, "r") as f: - db = yaml.load(f) + db = yaml.safe_load(f) except IOError as e: print('ERROR: could not load {} ({}})'.format(YAML_PATH, e.strerror)) exit(-1)