fix: replace deprecated ruamel.yaml.safe_load (#596)

This commit is contained in:
Robert Kaussow 2023-11-12 14:46:24 +01:00 committed by GitHub
parent 593a90ff10
commit 9536cd400d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ class Config:
with open(config, encoding="utf8") as stream:
s = stream.read()
try:
file_dict = ruamel.yaml.safe_load(s)
file_dict = ruamel.yaml.YAML(typ="safe", pure=True).load(s)
except (
ruamel.yaml.composer.ComposerError,
ruamel.yaml.scanner.ScannerError,