Use sys path mostly from project and move some sys path stuff around.

This commit is contained in:
Dave Halter committed 2017-10-05 10:06:28 +02:00
1 parent 383f749026
commit 51d2ffb078
7 files changed
+77 -67

No files matched your search

-3
View File
@@ -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