1
0
forked from VimPlug/jedi

StatementElement instead of Call and Call now inherits from that

This commit is contained in:
David Halter
2013-09-05 21:50:05 +04:30
parent 458497747b
commit 9e54abaf22
5 changed files with 34 additions and 24 deletions

View File

@@ -321,7 +321,8 @@ def sys_path_with_modifications(module):
if not isinstance(p, pr.Statement):
continue
commands = p.get_commands()
if len(commands) != 1: # sys.path command is just one thing.
# sys.path command is just one thing.
if len(commands) != 1 or not isinstance(commands[0], pr.Call):
continue
call = commands[0]
n = call.name