未验证 提交 3b16ed65 编写于 作者: J Jiabin Yang 提交者: GitHub

Update common.py

上级 ec690bcf
...@@ -95,7 +95,7 @@ def download(url, module_name, md5sum, save_name=None): ...@@ -95,7 +95,7 @@ def download(url, module_name, md5sum, save_name=None):
total_length = int(total_length) total_length = int(total_length)
for data in r.iter_content(chunk_size=4096): for data in r.iter_content(chunk_size=4096):
if six.PY2: if six.PY2:
data = six.b(data) data = six.b(data)
dl += len(data) dl += len(data)
f.write(data) f.write(data)
done = int(50 * dl / total_length) done = int(50 * dl / total_length)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册