Use the parser_cache correctly.
This commit is contained in:
1 parent
76529ca34d
commit
b9271cf5a5
2 files changed
+12
-10
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user