fix: replace deprecated ruamel.yaml.safe_load

This commit is contained in:
Robert Kaussow 2023-11-12 14:38:08 +01:00
parent 12f2428e9f
commit 7f599b85f8
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class Config:
with open(config, encoding="utf8") as stream:
s = stream.read()
try:
normalized = ruamel.yaml.safe_load(s)
normalized = ruamel.yaml.YAML(typ="safe", pure=True).load(s)
except (ruamel.yaml.composer.ComposerError, ruamel.yaml.scanner.ScannerError) as e:
message = f"{e.context} {e.problem}"
raise dockertidy.exception.ConfigError(