1
0
forked from VimPlug/jedi

Do not return None from Completion.description

This commit is contained in:
Takafumi Arakaki
2012-10-19 21:51:43 +02:00
parent f4b4ef1669
commit 40810b047e

View File

@@ -67,7 +67,8 @@ class Completion(object):
def description(self):
""" Provides a description of the completion object
TODO return value is just __repr__ of some objects, improve! """
return str(self.name.parent())
parent = self.name.parent()
return '' if parent is None else str(parent)
@property
def doc(self):