forked from VimPlug/jedi
builtin.parse_function_doc -> _parse_function_doc
This commit is contained in:
@@ -251,7 +251,7 @@ def _generate_code(scope, mixin_funcs={}, depth=0):
|
|||||||
|
|
||||||
# functions
|
# functions
|
||||||
for name, func in funcs.items():
|
for name, func in funcs.items():
|
||||||
params, ret = parse_function_doc(func)
|
params, ret = _parse_function_doc(func)
|
||||||
if depth > 0:
|
if depth > 0:
|
||||||
params = 'self, ' + params
|
params = 'self, ' + params
|
||||||
doc_str = get_doc(func, indent=True)
|
doc_str = get_doc(func, indent=True)
|
||||||
@@ -322,7 +322,7 @@ def _generate_code(scope, mixin_funcs={}, depth=0):
|
|||||||
return code
|
return code
|
||||||
|
|
||||||
|
|
||||||
def parse_function_doc(func):
|
def _parse_function_doc(func):
|
||||||
"""
|
"""
|
||||||
Takes a function and returns the params and return value as a tuple.
|
Takes a function and returns the params and return value as a tuple.
|
||||||
This is nothing more than a docstring parser.
|
This is nothing more than a docstring parser.
|
||||||
|
|||||||
Reference in New Issue
Block a user