forked from VimPlug/jedi
prevent SystemError from happening through literal_eval
This commit is contained in:
@@ -190,7 +190,7 @@ class Parser(CachedModule):
|
||||
def get_doc(obj, indent=False):
|
||||
doc = inspect.getdoc(obj)
|
||||
if doc:
|
||||
doc = ('"""\n%s\n"""\n' % doc)
|
||||
doc = ('r"""\n%s\n"""\n' % doc)
|
||||
if indent:
|
||||
doc = parsing.indent_block(doc)
|
||||
return doc
|
||||
|
||||
Reference in New Issue
Block a user