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

Update common.py

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