externals: bugfix in ruamel for ordereddict in Python 2.6
- args weren't being delegated properly from CommentedMap to OrderedDict
This commit is contained in:
parent
62f8ea1a75
commit
3f68d8c53a
4
lib/spack/external/ruamel/yaml/comments.py
vendored
4
lib/spack/external/ruamel/yaml/comments.py
vendored
@ -381,9 +381,9 @@ def _yaml_get_pre_comment(self):
|
||||
pre_comments = self.ca.comment[1] = []
|
||||
return pre_comments
|
||||
|
||||
def update(self, vals):
|
||||
def update(self, *vals, **kwds):
|
||||
try:
|
||||
ordereddict.update(self, vals)
|
||||
ordereddict.update(self, *vals, **kwds)
|
||||
except TypeError:
|
||||
# probably a dict that is used
|
||||
for x in vals:
|
||||
|
Loading…
Reference in New Issue
Block a user