mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-21 06:27:05 +08:00
Fix obvious UnboundLocalError.
This commit is contained in:
1 parent
78bd775889
commit
b26f51ded2
1 file changed
+1
@@ -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