Actually use the fast_parser setting again

This commit is contained in:
Dave Halter
2018-07-05 21:31:03 +02:00
parent 37a40d53a8
commit a59e5a016f
3 changed files with 4 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ class Script(object):
code=source,
path=self.path,
cache=False, # No disk cache, because the current script often changes.
diff_cache=True,
diff_cache=settings.fast_parser,
cache_path=settings.cache_directory
)
debug.speed('parsed')

View File

@@ -107,7 +107,7 @@ def _load_module(evaluator, path):
module_node = evaluator.grammar.parse(
path=path,
cache=True,
diff_cache=True,
diff_cache=settings.fast_parser,
cache_path=settings.cache_directory
).get_root_node()
# python_module = inspect.getmodule(python_object)

View File

@@ -500,7 +500,8 @@ def _load_module(evaluator, path=None, code=None, sys_path=None,
if path is not None and path.endswith(('.py', '.zip', '.egg')):
module_node = evaluator.parse(
code=code, path=path, cache=True, diff_cache=True,
code=code, path=path, cache=True,
diff_cache=settings.fast_parser,
cache_path=settings.cache_directory)
from jedi.evaluate.context import ModuleContext