1
0
forked from VimPlug/jedi

Merge with master.

This commit is contained in:
Dave Halter
2017-01-02 13:00:58 +01:00
12 changed files with 211 additions and 34 deletions

View File

@@ -159,7 +159,6 @@ class ParserPickling(object):
# 0 means version is not defined (= always delete cache):
if data.get('version', 0) != self.version:
self.clear_cache()
self.__index = {}
else:
self.__index = data['index']
return self.__index
@@ -179,6 +178,7 @@ class ParserPickling(object):
def clear_cache(self):
shutil.rmtree(self._cache_directory())
self.__index = {}
def _get_hashed_path(self, path):
return self._get_path('%s.pkl' % hashlib.md5(path.encode("utf-8")).hexdigest())