Skip to content

Commit

Permalink
Update constructor.py
Browse files Browse the repository at this point in the history
Changes 'collections.Hashable' to 'collections.abc.Hashable' to fix #128
  • Loading branch information
thefinaldegree authored and rdb committed Aug 26, 2023
1 parent d8c38c0 commit 2d920d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplibs/yaml/yaml_py3/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def construct_mapping(self, node, deep=False):
mapping = {}
for key_node, value_node in node.value:
key = self.construct_object(key_node, deep=deep)
if not isinstance(key, collections.Hashable):
if not isinstance(key, collections.abc.Hashable):
raise ConstructorError("while constructing a mapping", node.start_mark,
"found unhashable key", key_node.start_mark)
value = self.construct_object(value_node, deep=deep)
Expand Down

0 comments on commit 2d920d6

Please sign in to comment.