utils.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:odin 作者: imito 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号