1
0
forked from VimPlug/jedi

Merge pull request #232 from tkf/unicode-has-no-generate_call_path

Fix: 'unicode' object has no attribute 'generate_call_path'
This commit is contained in:
David Halter
2013-05-23 22:33:02 -07:00
3 changed files with 15 additions and 2 deletions

View File

@@ -794,7 +794,10 @@ def goto(stmt, call_path=None):
commands = stmt.get_commands()
assert len(commands) == 1
call = commands[0]
call_path = list(call.generate_call_path())
if isinstance(call, (str, unicode)):
call_path = [call]
else:
call_path = list(call.generate_call_path())
scope = stmt.get_parent_until(pr.IsScope)
pos = stmt.start_pos