use expression_list instead of commands or call_list
This commit is contained in:
1 parent
76eec7bfc5
commit
4af92b166a
11 files changed
+51
-50
No files matched your search
+1
-1
@@ -176,7 +176,7 @@ def inline(script):
|
||||
if not stmt.start_pos <= (r.line, r.column) <= stmt.end_pos]
|
||||
inlines = sorted(inlines, key=lambda x: (x.module_path, x.line, x.column),
|
||||
reverse=True)
|
||||
commands = stmt.get_commands()
|
||||
commands = stmt.expression_list()
|
||||
# don't allow multiline refactorings for now.
|
||||
assert stmt.start_pos[0] == stmt.end_pos[0]
|
||||
index = stmt.start_pos[0] - 1
|
||||
|
||||
Reference in new issue
Block a user