fix migrate-config for purelib yaml

This commit is contained in:
Anthony Sottile 2024-10-08 11:46:48 -04:00
parent 3d5548b487
commit 222c62bc5d
2 changed files with 18 additions and 1 deletions

View file

@ -47,7 +47,8 @@ def _migrate_map(contents: str) -> str:
def _preserve_style(n: ScalarNode, *, s: str) -> str:
return f'{n.style}{s}{n.style}'
style = n.style or ''
return f'{style}{s}{style}'
def _fix_stage(n: ScalarNode) -> str: