Skip to content

Commit ec1e113

Browse files
authored
Doc: fix parse_yaml in adding games.md (#4872)
1 parent 347efac commit ec1e113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/adding games.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ workarounds or preferred methods which should be used instead:
146146
* If you need to place specific items, there are multiple ways to do so, but they should not be added to the
147147
multiworld itempool.
148148
* It is not allowed to use `eval` for most reasons, chiefly due to security concerns.
149-
* It is discouraged to use `yaml.load` directly due to security concerns.
150-
* When possible, use `Utils.yaml_load` instead, as this defaults to the safe loader.
149+
* It is discouraged to use PyYAML (i.e. `yaml.load`) directly due to security concerns.
150+
* When possible, use `Utils.parse_yaml` instead, as this defaults to the safe loader and the faster C parser.
151151
* When submitting regions or items to the multiworld (`multiworld.regions` and `multiworld.itempool` respectively),
152152
do **not** use `=` as this will overwrite all elements for all games in the seed.
153153
* Instead, use `append`, `extend`, or `+=`.

0 commit comments

Comments
 (0)