summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst2
-rw-r--r--comments.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index b66d249..f4be7f5 100644
--- a/README.rst
+++ b/README.rst
@@ -56,7 +56,7 @@ ChangeLog
NEXT:
- fix for issue 359: could not update() CommentedMap with keyword arguments
- (reported by `Steve Franchak <https://sourceforge.net/u/binaryadder/>__)
+ (reported by `Steve Franchak <https://sourceforge.net/u/binaryadder/>`__)
0.16.12 (2020-09-04):
- update links in doc
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())