summaryrefslogtreecommitdiff
path: root/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'comments.py')
-rw-r--r--comments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/comments.py b/comments.py
index 9c65cf2..00f57de 100644
--- a/comments.py
+++ b/comments.py
@@ -851,14 +851,14 @@ class CommentedMap(ordereddict, CommentedBase):
yield x, ordereddict.__getitem__(self, x)
done = [] # type: List[Any] # list of processed merge items, kept for masking
for merged in getattr(self, merge_attrib, []):
- for x in merged[1]:
+ for x, v in merged[1].items():
if ordereddict.__contains__(self, x):
continue
for y in done:
if x in y:
break
else:
- yield x, ordereddict.__getitem__(merged[1], x)
+ yield x, v # ordereddict.__getitem__(merged[1], x)
done.append(merged[1])
if PY2: