diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-07-02 14:01:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 14:01:13 +0200 |
commit | a6e60939226e4d8271a478cc8f5f93796b6346bf (patch) | |
tree | e1bb53a6a89edafbef3ca2d19a4d258f5ef9b383 | |
parent | 2e8b4e660ee23f3ddea490a681f3042a5ae55a57 (diff) | |
download | spack-a6e60939226e4d8271a478cc8f5f93796b6346bf.tar.gz spack-a6e60939226e4d8271a478cc8f5f93796b6346bf.tar.bz2 spack-a6e60939226e4d8271a478cc8f5f93796b6346bf.tar.xz spack-a6e60939226e4d8271a478cc8f5f93796b6346bf.zip |
spack_yaml.py: fix default_flow_style (#44998)
-rw-r--r-- | lib/spack/spack/util/spack_yaml.py | 4 |
1 files 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) |