def __init__(self, filename):
if not isinstance(filename, string_types):
raise TypeError('ReopenableZipFile filename must be a string')
zipfile.ZipFile.__init__(self, filename)
assert self.filename == filename
self.close()
# After closing a ZipFile object, the _fileRefCnt needs to be cleared
# for Python2and3 compatible code.
self._fileRefCnt = 0
data.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录