Remove CachedFastPaser, not needed anymore.

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

No files matched your search

+2 -1
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: