1
0
forked from VimPlug/jedi

Remove CachedFastPaser, not needed anymore.

This commit is contained in:
Dave Halter
2017-03-31 21:46:57 +02:00
parent 1bb0c89f46
commit b15aa197fd
2 changed files with 2 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ Parsers for Python
"""
import os
from jedi import settings
from jedi._compatibility import FileNotFoundError
from jedi.parser.pgen2.pgen import generate_grammar
from jedi.parser.python.parser import Parser, _remove_last_newline
@@ -86,7 +87,7 @@ def parse(code=None, path=None, grammar=None, error_recovery=True,
with open(path, 'rb') as f:
code = source_to_unicode(f.read())
if diff_cache:
if diff_cache and settings.fast_parser:
try:
module_cache_item = parser_cache[path]
except KeyError: