change migrate-config to use yaml parse tree instead

This commit is contained in:
Anthony Sottile 2024-09-16 20:05:29 -04:00
parent 504149d2ca
commit 364e6d77f0
5 changed files with 194 additions and 10 deletions

View file

@ -6,6 +6,7 @@ from typing import Any
import yaml
Loader = getattr(yaml, 'CSafeLoader', yaml.SafeLoader)
yaml_compose = functools.partial(yaml.compose, Loader=Loader)
yaml_load = functools.partial(yaml.load, Loader=Loader)
Dumper = getattr(yaml, 'CSafeDumper', yaml.SafeDumper)