Skip to content

Commit db9c1ac

Browse files
pyaml lib linux issue patched: temp
1 parent 7227b03 commit db9c1ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/libs/yaml/constructor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def construct_mapping(self, node, deep=False):
123123
mapping = {}
124124
for key_node, value_node in node.value:
125125
key = self.construct_object(key_node, deep=deep)
126-
if not isinstance(key, collections.Hashable):
126+
# if not isinstance(key, collections.Hashable): # OLD
127+
if not isinstance(key, collections.abc.Hashable): # NEW
127128
raise ConstructorError("while constructing a mapping", node.start_mark,
128129
"found unhashable key", key_node.start_mark)
129130
value = self.construct_object(value_node, deep=deep)

0 commit comments

Comments
 (0)