forked from VimPlug/jedi
Use sys path mostly from project and move some sys path stuff around.
This commit is contained in:
@@ -12,7 +12,6 @@ there are global variables, which are holding the cache information. Some of
|
||||
these variables are being cleaned after every API usage.
|
||||
"""
|
||||
import time
|
||||
import inspect
|
||||
|
||||
from jedi import settings
|
||||
from parso.cache import parser_cache
|
||||
@@ -46,8 +45,6 @@ def underscore_memoization(func):
|
||||
return getattr(self, name)
|
||||
except AttributeError:
|
||||
result = func(self)
|
||||
if inspect.isgenerator(result):
|
||||
result = list(result)
|
||||
setattr(self, name, result)
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user