mirror of
https://github.com/powerline/powerline.git
synced 2025-07-24 06:15:41 +02:00
Fix #2200
This commit is contained in:
parent
9ce39e6333
commit
90af71c122
@ -122,7 +122,7 @@ class BaseConstructor:
|
|||||||
mapping = {}
|
mapping = {}
|
||||||
for key_node, value_node in node.value:
|
for key_node, value_node in node.value:
|
||||||
key = self.construct_object(key_node, deep=deep)
|
key = self.construct_object(key_node, deep=deep)
|
||||||
if not isinstance(key, collections.Hashable):
|
if not isinstance(key, collections.abc.Hashable):
|
||||||
self.echoerr(
|
self.echoerr(
|
||||||
'While constructing a mapping', node.start_mark,
|
'While constructing a mapping', node.start_mark,
|
||||||
'found unhashable key', key_node.start_mark
|
'found unhashable key', key_node.start_mark
|
||||||
|
Loading…
x
Reference in New Issue
Block a user