1
0
forked from VimPlug/jedi

remove get_set_vars completely from existance

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

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)