remove get_set_vars completely from existance

This commit is contained in:
Dave Halter committed 2014-04-14 12:40:59 +02:00
1 parent 237af765b7
commit 6a40c9b671
9 files changed
+37 -52

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ def inline(script):
replace_str = '(%s)' % replace_str
# if it's the only assignment, remove the statement
if len(stmt.get_set_vars()) == 1:
if len(stmt.get_defined_names()) == 1:
line = line[:stmt.start_pos[1]] + line[stmt.end_pos[1]:]
dct = _rename(inlines, replace_str)