Update pickle_core.py

This commit is contained in:
jmrichardson authored and GitHub committed 2020-09-01 17:17:18 -04:00
1 parent 4f6aff9af6
commit d56ca0c42f
1 file changed
+1 -1
+1 -1
View File
@@ -136,7 +136,7 @@ class _PickleCore(_BaseCore):
self.cache = cache
fpath = self._cache_fpath()
with portalocker.Lock(fpath, mode='wb') as cache_file:
pickle.dump(cache, cache_file)
pickle.dump(cache, cache_file, protocol=4)
self._reload_cache()
def get_entry_by_key(self, key, reload=False): # pylint: disable=W0221