From 77631928506508dd452a5c3fc79c25cb8d04e795 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 2 Apr 2014 10:46:57 +0200 Subject: [PATCH] use the generalized _follow_statements_imports internally --- jedi/api/classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index b285d547..2f13b18f 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -449,10 +449,10 @@ class Completion(BaseDefinition): if isinstance(self._definition, pr.Import): i = imports.ImportPath(self._evaluator, self._definition) if len(i.import_path) > 1 or not fast: - followed = self.follow_definition() + followed = self._follow_statements_imports() if followed: # TODO: Use all of the followed objects as input to Documentation. - definition = followed[0]._definition + definition = followed[0] return Documentation(definition) @property