forked from VimPlug/jedi
Fix a warning that happened if there was no valid Python function in a place.
This commit is contained in:
@@ -117,7 +117,11 @@ def _strip_rst_role(type_str):
|
|||||||
def _evaluate_for_statement_string(module_context, string):
|
def _evaluate_for_statement_string(module_context, string):
|
||||||
code = dedent(u("""
|
code = dedent(u("""
|
||||||
def pseudo_docstring_stuff():
|
def pseudo_docstring_stuff():
|
||||||
# Create a pseudo function for docstring statements.
|
'''
|
||||||
|
Create a pseudo function for docstring statements.
|
||||||
|
Need this docstring so that if the below part is not valid Python this
|
||||||
|
is still a function.
|
||||||
|
'''
|
||||||
{0}
|
{0}
|
||||||
"""))
|
"""))
|
||||||
if string is None:
|
if string is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user