未验证 提交 bf836736 编写于 作者: Z Zeng Jinle 提交者: GitHub

fix download.py empty line, test=develop (#19870)

上级 1f686744
......@@ -72,6 +72,9 @@ def download(url, module_name, md5sum, save_name=None):
url.split('/')[-1]
if save_name is None else save_name)
if os.path.exists(filename) and md5file(filename) == md5sum:
return filename
retry = 0
retry_limit = 3
while not (os.path.exists(filename) and md5file(filename) == md5sum):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册