Deal with the consequences of an entry-point deprecation in Python.

This commit is contained in:
Eric S. Raymond 2020-08-27 20:33:44 -04:00
parent 039c06882e
commit d9e33a8478
3 changed files with 11 additions and 33 deletions

View file

@ -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"]]