diff options
author | Anthon van der Neut <anthon@mnt.org> | 2020-09-22 16:04:40 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2020-09-22 16:04:40 +0200 |
commit | 1bdf43c8200b3e61c68a947f88cf40a81ddc26eb (patch) | |
tree | 61d638ceeb3a3c95119808b0efeedea8af35d5b0 /comments.py | |
parent | ad245940e37c3169e990704c7b7a51813f48f8a8 (diff) | |
download | ruamel.yaml-1bdf43c8200b3e61c68a947f88cf40a81ddc26eb.tar.gz |
corrections on update()
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/comments.py b/comments.py index d00cf0d..a091d37 100644 --- a/comments.py +++ b/comments.py @@ -702,13 +702,13 @@ class CommentedMap(ordereddict, CommentedBase): # type: ignore ordereddict.update(self, *vals, **kw) except TypeError: # probably a dict that is used - for x in *vals: - self[x] = *vals[x] + for x in vals[0]: + self[x] = vals[0][x] try: - self._ok.update(*vals.keys()) # type: ignore + self._ok.update(vals.keys()) # type: ignore except AttributeError: - # assume a list/tuple of two element lists/tuples - for x in *vals: + # assume one argument that is a list/tuple of two element lists/tuples + for x in vals[0]: self._ok.add(x[0]) if kw: self._ok.add(*kw.keys()) |