mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 22:05:43 +02:00
Fix #2200
This commit is contained in:
parent
9ce39e6333
commit
90af71c122
@ -122,7 +122,7 @@ class BaseConstructor:
|
||||
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):
|
||||
self.echoerr(
|
||||
'While constructing a mapping', node.start_mark,
|
||||
'found unhashable key', key_node.start_mark
|
||||
|
Loading…
x
Reference in New Issue
Block a user