1
0
forked from VimPlug/jedi

once more: python 3.5 uses atom_expr node in many places where previous python would use power node

This commit is contained in:
Claude
2016-02-09 18:47:48 +01:00
parent 8819b2133a
commit bf5acb4c7a
3 changed files with 5 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ def _check_for_exception_catch(evaluator, jedi_obj, exception, payload=None):
def check_hasattr(node, suite):
try:
assert suite.start_pos <= jedi_obj.start_pos < suite.end_pos
assert node.type == 'power'
assert node.type == 'power' or node.type == 'atom_expr'
base = node.children[0]
assert base.type == 'name' and base.value == 'hasattr'
trailer = node.children[1]