1
0
forked from VimPlug/jedi

Use the parser_cache correctly.

This commit is contained in:
Dave Halter
2017-05-26 13:43:18 -04:00
parent 76529ca34d
commit b9271cf5a5
2 changed files with 12 additions and 10 deletions

View File

@@ -497,7 +497,8 @@ def get_modules_containing_name(evaluator, modules, name):
def check_python_file(path):
try:
node_cache_item = parser_cache[path]
# TODO I don't think we should use the cache here?!
node_cache_item = parser_cache[evaluator.grammar._hashed][path]
except KeyError:
try:
return check_fs(path)