1
0
forked from VimPlug/jedi

fix a problem related to #246: comments were used as normal strings

This commit is contained in:
David Halter
2013-07-18 12:18:07 +02:00
parent b6e9f16a01
commit 075c60de29
3 changed files with 14 additions and 2 deletions

View File

@@ -791,7 +791,8 @@ def filter_private_variable(scope, call_scope, var_name):
def goto(stmt, call_path=None):
if call_path is None:
commands = stmt.get_commands()
assert len(commands) == 1
# Only the first command is important, the rest should basically not
# happen except in broken code (e.g. docstrings that aren't code).
call = commands[0]
if isinstance(call, (str, unicode)):
call_path = [call]