spack_yaml.py: fix default_flow_style (#44998)
This commit is contained in:
parent
2e8b4e660e
commit
a6e6093922
@ -233,8 +233,8 @@ def wrapper(data, stream=None, **kwargs):
|
||||
@return_string_when_no_stream
|
||||
def dump(data, stream=None, default_flow_style=False):
|
||||
handler = ConfigYAML(yaml_type=YAMLType.GENERIC_YAML)
|
||||
handler.default_flow_style = default_flow_style
|
||||
handler.width = maxint
|
||||
handler.yaml.default_flow_style = default_flow_style
|
||||
handler.yaml.width = maxint
|
||||
return handler.dump(data, stream=stream)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user