From 649135ea7bfbcc8135544098f8539a0858b293a8 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 11 Aug 2013 00:06:04 +0430 Subject: [PATCH] goto_assignments more readable --- jedi/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/api.py b/jedi/api.py index 758a7457..e85c9373 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -341,7 +341,8 @@ class Script(object): :rtype: list of :class:`api_classes.Definition` """ - d = [api_classes.Definition(d) for d in set(self._goto()[0]) + results, _ = self._goto() + d = [api_classes.Definition(d) for d in set(results) if not isinstance(d, imports.ImportPath._GlobalNamespace)] return self._sorted_defs(d)