forked from VimPlug/jedi
small fix for docstring parsing.
This commit is contained in:
@@ -127,7 +127,7 @@ def _evaluate_for_statement_string(evaluator, string, module):
|
|||||||
# (e.g., 'threading' in 'threading.Thread').
|
# (e.g., 'threading' in 'threading.Thread').
|
||||||
string = 'import %s\n' % element + string
|
string = 'import %s\n' % element + string
|
||||||
|
|
||||||
p = Parser(evaluator.grammar, code % indent_block(string), no_docstr=True)
|
p = Parser(evaluator.grammar, code % indent_block(string))
|
||||||
pseudo_cls = p.module.subscopes[0]
|
pseudo_cls = p.module.subscopes[0]
|
||||||
try:
|
try:
|
||||||
stmt = pseudo_cls.statements[-1]
|
stmt = pseudo_cls.statements[-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user