From ec1e113b4c6dbaa977a46325fb6cb7d958ea531e Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Sun, 13 Apr 2025 13:10:36 +0200 Subject: [PATCH] Doc: fix parse_yaml in adding games.md (#4872) --- docs/adding games.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/adding games.md b/docs/adding games.md index 2decb667..c3eb0d02 100644 --- a/docs/adding games.md +++ b/docs/adding games.md @@ -146,8 +146,8 @@ workarounds or preferred methods which should be used instead: * If you need to place specific items, there are multiple ways to do so, but they should not be added to the multiworld itempool. * It is not allowed to use `eval` for most reasons, chiefly due to security concerns. -* It is discouraged to use `yaml.load` directly due to security concerns. - * When possible, use `Utils.yaml_load` instead, as this defaults to the safe loader. +* It is discouraged to use PyYAML (i.e. `yaml.load`) directly due to security concerns. + * When possible, use `Utils.parse_yaml` instead, as this defaults to the safe loader and the faster C parser. * When submitting regions or items to the multiworld (`multiworld.regions` and `multiworld.itempool` respectively), do **not** use `=` as this will overwrite all elements for all games in the seed. * Instead, use `append`, `extend`, or `+=`.