Source

pyyaml / tests / test_resolver.py

Diff from to

tests/test_resolver.py

             return node.tag, value
         elif isinstance(node, MappingNode):
             value = []
-            for key in node.value:
-                item = node.value[key]
+            for key, item in node.value:
                 value.append((self._convert(key), self._convert(item)))
             value.sort()
             return node.tag, value