Fix the previous error

This commit is contained in:
Takafumi Arakaki committed 2013-05-23 15:32:32 +02:00
1 parent ce92fd946b
commit a4922774c0
2 files changed
+7 -2

No files matched your search

+4 -1
View File
@@ -775,7 +775,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