summaryrefslogtreecommitdiff
path: root/lib/spack/external/patches/ruamelyaml.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/external/patches/ruamelyaml.patch')
-rw-r--r--lib/spack/external/patches/ruamelyaml.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/spack/external/patches/ruamelyaml.patch b/lib/spack/external/patches/ruamelyaml.patch
new file mode 100644
index 0000000000..24bf17f233
--- /dev/null
+++ b/lib/spack/external/patches/ruamelyaml.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/spack/external/_vendoring/ruamel/yaml/comments.py b/lib/spack/external/_vendoring/ruamel/yaml/comments.py
+index 1badeda585..892c868af3 100644
+--- a/lib/spack/external/_vendoring/ruamel/yaml/comments.py
++++ b/lib/spack/external/_vendoring/ruamel/yaml/comments.py
+@@ -497,7 +497,7 @@ def copy_attributes(self, t, memo=None):
+ Tag.attrib, merge_attrib]:
+ if hasattr(self, a):
+ if memo is not None:
+- setattr(t, a, copy.deepcopy(getattr(self, a, memo)))
++ setattr(t, a, copy.deepcopy(getattr(self, a), memo))
+ else:
+ setattr(t, a, getattr(self, a))
+ # fmt: on