1
0
forked from VimPlug/jedi

* replaced docstr-string with TokenDocstring object

This commit is contained in:
Jean-Louis Fuchs
2013-12-13 01:22:56 +01:00
parent 53e4962711
commit d687fa4df6
6 changed files with 80 additions and 24 deletions

View File

@@ -252,6 +252,8 @@ class BaseDefinition(object):
See :attr:`doc` for example.
"""
if isinstance(self._definition.docstr, pr.token_pr.TokenDocstring):
return unicode(self._definition.docstr.as_string())
try:
return unicode(self._definition.docstr)
except AttributeError: