1
0
forked from VimPlug/jedi

use expression_list instead of commands or call_list

This commit is contained in:
Dave Halter
2013-12-27 14:24:14 +01:00
parent 76eec7bfc5
commit 4af92b166a
11 changed files with 51 additions and 50 deletions

View File

@@ -320,7 +320,7 @@ def sys_path_with_modifications(module):
for p in possible_stmts:
if not isinstance(p, pr.Statement):
continue
commands = p.get_commands()
commands = p.expression_list()
# sys.path command is just one thing.
if len(commands) != 1 or not isinstance(commands[0], pr.Call):
continue