-#!/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
# 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)