Change implementation of StatementElement.
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
This commit is contained in:
1 parent
7619bf27d1
commit
8006d6f190
7 files changed
+36
-52
No files matched your search
@@ -161,7 +161,8 @@ def _check_for_exception_catch(evaluator, jedi_obj, exception, payload=None):
|
||||
assert len(expression_list) == 1
|
||||
call = expression_list[0]
|
||||
assert isinstance(call, pr.Call) and str(call.name) == 'hasattr'
|
||||
execution = call.execution
|
||||
assert call.next_is_execution()
|
||||
execution = call.next
|
||||
assert execution and len(execution) == 2
|
||||
|
||||
# check if the names match
|
||||
|
||||
Reference in new issue
Block a user