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

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

No files matched your search

+1 -1
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):