From a6e60939226e4d8271a478cc8f5f93796b6346bf Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 2 Jul 2024 14:01:13 +0200 Subject: spack_yaml.py: fix default_flow_style (#44998) --- lib/spack/spack/util/spack_yaml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/util/spack_yaml.py b/lib/spack/spack/util/spack_yaml.py index 200025411e..04f88faafa 100644 --- a/lib/spack/spack/util/spack_yaml.py +++ b/lib/spack/spack/util/spack_yaml.py @@ -233,8 +233,8 @@ def return_string_when_no_stream(func): @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) -- cgit v1.2.3-70-g09d2