finally able to remove stmt.set_vars property

This commit is contained in:
David Halter committed 2013-09-02 21:43:23 +04:30
1 parent 9565aa1431
commit 37ecf943af
4 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -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)