Fix the remaining issues with the StatementElement.next refactoring.
This commit is contained in:
1 parent
8006d6f190
commit
8bde89cc58
4 files changed
+7
-3
No files matched your search
@@ -8,7 +8,7 @@ def parse_tree(statement_string, is_slice=False):
|
||||
stmt = p.module.statements[0]
|
||||
if is_slice:
|
||||
# get the part of the execution that is the slice
|
||||
stmt = stmt.expression_list()[0].execution[0]
|
||||
stmt = stmt.expression_list()[0].next[0]
|
||||
iterable = stmt.expression_list()
|
||||
pr = precedence.create_precedence(iterable)
|
||||
if isinstance(pr, precedence.Precedence):
|
||||
|
||||
Reference in new issue
Block a user