1
0
forked from VimPlug/jedi

Fix a warning that happened if there was no valid Python function in a place.

This commit is contained in:
Dave Halter
2017-05-25 12:26:07 -04:00
parent ef2e2f343e
commit d0127a7f61

View File

@@ -117,7 +117,11 @@ def _strip_rst_role(type_str):
def _evaluate_for_statement_string(module_context, string):
code = dedent(u("""
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}
"""))
if string is None: