Browse files

Do not return None from Completion.description

  • Loading branch information...
1 parent f4b4ef1 commit 40810b047e89bf4464af360a5e7341471071f598 @tkf tkf committed Oct 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 jedi/api.py
View
3 jedi/api.py
@@ -67,7 +67,8 @@ def word(self):
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):

0 comments on commit 40810b0

Please sign in to comment.