def _info_or_id(self, info_or_id):
if isinstance(info_or_id, compat.string_types):
return self.info(info_or_id)
else:
return info_or_id
# [xx] When during downloading is it 'safe' to abort? Only unsafe
# time is *during* an unzip -- we don't want to leave a
# partially-unzipped corpus in place because we wouldn't notice
# it. But if we had the exact total size of the unzipped corpus,
# then that would be fine. Then we could abort anytime we want!
# So this is really what we should do. That way the threaded
# downloader in the gui can just kill the download thread anytime
# it wants.
downloader.py 文件源码
python
阅读 47
收藏 0
点赞 0
评论 0
评论列表
文章目录