1
0
forked from VimPlug/jedi

fixed a problem with docstrings that were empty (None), docstrings in Jedi are always strings.

This commit is contained in:
Dave Halter
2014-03-06 12:20:11 +01:00
parent d12e030677
commit ca460ac34f
2 changed files with 10 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ class CompiledObject(Base):
def __init__(self, obj, parent=None):
self.obj = obj
self.parent = parent
self.doc = inspect.getdoc(obj)
self.doc = inspect.getdoc(obj) or ''
@property
def params(self):