1
0
forked from VimPlug/jedi

refactorings / added used_names to Module

This commit is contained in:
David Halter
2012-08-03 17:10:00 +02:00
parent 52d80ca06c
commit c2a5876d7b
4 changed files with 29 additions and 18 deletions

View File

@@ -210,7 +210,7 @@ def prepare_goto(source, position, source_path, module, goto_path,
# just parse one statement, take it and evaluate it
r = parsing.PyFuzzyParser(goto_path, source_path)
try:
stmt = r.top.statements[0]
stmt = r.module.statements[0]
except IndexError:
raise NotFoundError()
else: