From 9fa0b9f924de10320219700e36ce4ae707bd3c24 Mon Sep 17 00:00:00 2001 From: David Halter Date: Thu, 21 Feb 2013 01:45:25 +0430 Subject: [PATCH] fix rest of rename tests --- jedi/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate.py b/jedi/evaluate.py index ff3a155d..30abf8a7 100644 --- a/jedi/evaluate.py +++ b/jedi/evaluate.py @@ -744,7 +744,7 @@ def goto(stmt, call_path=None): call = commands[0] call_path = list(call.generate_call_path()) - scope = stmt.parent + scope = stmt.get_parent_until(pr.IsScope) pos = stmt.start_pos call_path, search = call_path[:-1], call_path[-1] pos = pos[0], pos[1] + 1