Merge branch 'get_code_fidelity' of git://github.com/ganwell/jedi into ganwell
This commit is contained in:
commit
2f3e4152b4
8 files changed
+173
-21
No files matched your search
@@ -241,6 +241,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:
|
||||
|
||||
Reference in new issue
Block a user