1
0
forked from VimPlug/jedi

some import fixes

This commit is contained in:
David Halter
2013-02-19 00:11:15 +04:30
parent 3ddd371310
commit 926ab81bf2
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -314,7 +314,8 @@ def sys_path_with_modifications(module):
if not isinstance(p, pr.Statement):
continue
commands = p.get_commands()
assert len(commands) == 1
if len(commands) != 1: # sys.path command is just one thing.
continue
call = commands[0]
n = call.name
if not isinstance(n, pr.Name) or len(n.names) != 3: