def __enter__(self):
"""
Create the temporary file in memory first, when it uses too much memory
it is automatically relocated to the filesystem.
"""
self.file = tempfile.SpooledTemporaryFile(max_size=self.max_size)
return self.file
files.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录