From 4ff3a0ba266e0f29a6c8fce101431ba9c2326216 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 26 Dec 2012 23:10:03 +0100 Subject: [PATCH] variable set in the wrong place --- jedi/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api.py b/jedi/api.py index c493e679..5bdb9f0a 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -408,9 +408,9 @@ class Script(object): except NotFoundError: return None + user_stmt = self._parser.user_stmt if call is None: # This is a backup, if the above is not successful. - user_stmt = self._parser.user_stmt call, index = check_user_stmt(user_stmt) if call is None: return None