diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2024-05-16 04:25:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 19:25:06 -0700 |
commit | d189387c2402549d7b2f384590962357bf7f87c2 (patch) | |
tree | 72329e2269c95bc790cc66aa07cc73d5a27df9d1 | |
parent | 9e96ddc5aed1177de50feba8adb728c720a43622 (diff) | |
download | spack-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.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 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 |