fix import formatting in description for davidhalter/jedi-vim#42

This commit is contained in:
David Halter committed 2012-11-27 13:07:06 +01:00
1 parent 7b3d8b6772
commit e5b0989afe
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ class Completion(BaseOutput):
if parent is None:
return ''
t = self.type
if t == 'Statement':
if t == 'Statement' or t == 'Import':
desc = self.definition.get_code(False)
else:
desc = '.'.join(str(p) for p in self.path)