
* Vendor ruamel.yaml v0.17.21 * Add unit test for whitespace regression * Add an abstraction layer in Spack to wrap ruamel.yaml All YAML operations are routed through spack.util.spack_yaml The custom classes have been adapted to the new ruamel.yaml class hierarchy. Fixed line annotation issue in "spack config blame"
15 lines
342 B
Python
15 lines
342 B
Python
# coding: utf-8
|
|
|
|
import warnings
|
|
|
|
from ruamel.yaml.util import configobj_walker as new_configobj_walker
|
|
|
|
if False: # MYPY
|
|
from typing import Any # NOQA
|
|
|
|
|
|
def configobj_walker(cfg):
|
|
# type: (Any) -> Any
|
|
warnings.warn('configobj_walker has moved to ruamel.yaml.util, please update your code')
|
|
return new_configobj_walker(cfg)
|