def __setstate__(self, states):
path, read_only, cache_size = states
if not os.path.exists(path):
raise ValueError("Cannot find store NoSQL database at path: %s."
"If you have moved the database, the dumps from "
"cannot restore the previous intance." % path)
self._restore_dict(path, read_only, cache_size)
self._path = path
self._read_only = read_only
self._cache_size = cache_size
评论列表
文章目录