From d189387c2402549d7b2f384590962357bf7f87c2 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 16 May 2024 04:25:06 +0200 Subject: 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(-) (limited to 'lib') diff --git a/lib/spack/spack/util/spack_yaml.py b/lib/spack/spack/util/spack_yaml.py index f4bec63f5c..9dadc25d82 100644 --- a/lib/spack/spack/util/spack_yaml.py +++ b/lib/spack/spack/util/spack_yaml.py @@ -296,8 +296,8 @@ class LineAnnotationEmitter(emitter.Emitter): 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 -- cgit v1.2.3-70-g09d2