From d189387c2402549d7b2f384590962357bf7f87c2 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 16 May 2024 04:25:06 +0200 Subject: [PATCH] bugfix: add arg to `write_line_break()` in `spack_yaml` (#42727) `ruamel`'s `Emitter.write_line_break()` method takes an extra argument that we forgot to implement in our custom emitter. --- 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 f4bec63f5cc..9dadc25d82d 100644 --- a/lib/spack/spack/util/spack_yaml.py +++ b/lib/spack/spack/util/spack_yaml.py @@ -296,8 +296,8 @@ def process_scalar(self): if marked(self.event.value): self.saved = self.event.value - def write_line_break(self): - super().write_line_break() + def write_line_break(self, data=None): + super().write_line_break(data) if self.saved is None: _ANNOTATIONS.append(colorize("@K{---}")) return