addition to fix another docstr problem

This commit is contained in:
David Halter
2012-08-14 12:55:25 +02:00
parent e2fb6c7d9a
commit 79d30f1b24
2 changed files with 9 additions and 7 deletions

View File

@@ -217,15 +217,15 @@ def prepare_goto(source, position, source_path, module, goto_path,
scopes = [imports.ImportPath(user_stmt, is_like_search)]
else:
# just parse one statement, take it and evaluate it
r = parsing.PyFuzzyParser(goto_path, source_path)
r = parsing.PyFuzzyParser(goto_path, source_path, no_docstr=True)
try:
stmt = r.module.statements[0]
except IndexError:
raise NotFoundError()
else:
stmt.start_pos = position
stmt.parent = weakref.ref(scope)
scopes = evaluate.follow_statement(stmt)
stmt.start_pos = position
stmt.parent = weakref.ref(scope)
scopes = evaluate.follow_statement(stmt)
return scopes