1
0
forked from VimPlug/jedi

combine power-or-atom_expr statements into one statement

This commit is contained in:
Claude
2016-02-15 10:20:25 +01:00
parent d5f08f8bdd
commit ca08b8270b
6 changed files with 6 additions and 7 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' or node.type == 'atom_expr'
assert node.type in ('power', 'atom_expr')
base = node.children[0]
assert base.type == 'name' and base.value == 'hasattr'
trailer = node.children[1]