1
0
forked from VimPlug/jedi

it should be possible to find the origin of an operation, if it's a faulty one (static analysis)

This commit is contained in:
Dave Halter
2014-07-22 14:52:58 +02:00
parent 50ceef6e09
commit 15f42d93d7
3 changed files with 25 additions and 10 deletions

View File

@@ -157,7 +157,7 @@ class NameFinder(object):
else:
p = precedence.create_precedence(expression_list)
if (isinstance(p, precedence.Precedence)
and p.operator == 'is not'
and p.operator.string == 'is not'
and p.right.get_code() == 'None'
and p.left.get_code() == unicode(self.name_str)):
return True