forked from VimPlug/jedi
Fix obvious UnboundLocalError.
This commit is contained in:
@@ -99,6 +99,7 @@ def _paths_from_call_expression(module_path, call):
|
|||||||
return
|
return
|
||||||
cmd = names[2]
|
cmd = names[2]
|
||||||
exe = call.next
|
exe = call.next
|
||||||
|
path = None
|
||||||
if cmd == 'insert' and len(exe) == 2:
|
if cmd == 'insert' and len(exe) == 2:
|
||||||
path = _paths_from_insert(module_path, exe)
|
path = _paths_from_insert(module_path, exe)
|
||||||
elif cmd == 'append' and len(exe) == 1:
|
elif cmd == 'append' and len(exe) == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user