X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=make_dungeon.py;h=724b941d9652c10b824e1c9ec42486cd7a075a76;hb=d9e33a847881bf510c2933aa0801bfda16d89dae;hp=63eee94ed241863772ee71465c6a25b7d07e7c7c;hpb=039c06882ea0631ca918424b66473bc545b60a99;p=open-adventure.git diff --git a/make_dungeon.py b/make_dungeon.py index 63eee94..724b941 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This is the open-adventure dungeon generator. It consumes a YAML description of # the dungeon and outputs a dungeon.h and dungeon.c pair of C code files. @@ -523,7 +523,7 @@ def get_travel(travel): if __name__ == "__main__": with open(YAML_NAME, "r") as f: - db = yaml.load(f) + db = yaml.safe_load(f) locnames = [x[0] for x in db["locations"]] msgnames = [el[0] for el in db["arbitrary_messages"]]