forked from VimPlug/jedi
Further small flow_analysis corrections. Keywords are only equal to other keywords if they are the same. Not in case of the same value anymore.
This commit is contained in:
@@ -334,6 +334,8 @@ class Keyword(Leaf):
|
||||
Make comparisons with strings easy.
|
||||
Improves the readability of the parser.
|
||||
"""
|
||||
if isinstance(other, Keyword):
|
||||
return self is other
|
||||
return self.value == other
|
||||
|
||||
def __ne__(self, other):
|
||||
|
||||
Reference in New Issue
Block a user