summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2024-05-16 04:25:06 +0200
committerGitHub <noreply@github.com>2024-05-15 19:25:06 -0700
commitd189387c2402549d7b2f384590962357bf7f87c2 (patch)
tree72329e2269c95bc790cc66aa07cc73d5a27df9d1
parent9e96ddc5aed1177de50feba8adb728c720a43622 (diff)
downloadspack-d189387c2402549d7b2f384590962357bf7f87c2.tar.gz
spack-d189387c2402549d7b2f384590962357bf7f87c2.tar.bz2
spack-d189387c2402549d7b2f384590962357bf7f87c2.tar.xz
spack-d189387c2402549d7b2f384590962357bf7f87c2.zip
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.
-rw-r--r--lib/spack/spack/util/spack_yaml.py4
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 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