1
0
forked from VimPlug/jedi

removed a bug that caused certain builtin returns not to work

This commit is contained in:
David Halter
2012-08-23 15:05:48 +02:00
parent 4b784263ae
commit 727267d501

View File

@@ -373,7 +373,7 @@ def parse_function_doc(func):
else:
# get result type, which can contain newlines
pattern = re.compile(r'(,\n|[^\n-])+')
ret_str = pattern.match(doc, index + 3).group(0)
ret_str = pattern.match(doc, index + 3).group(0).strip()
ret = Parser.map_types.get(ret_str, ret_str)
if ret == ret_str and ret not in ['None', 'object', 'tuple', 'set']:
debug.dbg('not working', ret_str)