finally able to remove stmt.set_vars property
This commit is contained in:
1 parent
9565aa1431
commit
37ecf943af
4 files changed
+3
-7
No files matched your search
+1
-1
@@ -191,7 +191,7 @@ def inline(script):
|
||||
replace_str = '(%s)' % replace_str
|
||||
|
||||
# if it's the only assignment, remove the statement
|
||||
if len(stmt.set_vars) == 1:
|
||||
if len(stmt.get_set_vars()) == 1:
|
||||
line = line[:stmt.start_pos[1]] + line[stmt.end_pos[1]:]
|
||||
|
||||
dct = _rename(inlines, replace_str)
|
||||
|
||||
Reference in new issue
Block a user