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:
Todd Gamblin 2018-11-04 17:57:38 -08:00
parent 62f8ea1a75
commit 3f68d8c53a

View File

@ -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: