提交 9620f50d 编写于 作者: M minqiyang

Polish code

test=release/1.0.0
上级 68e58ff8
...@@ -27,7 +27,7 @@ def _get_version_detail(idx): ...@@ -27,7 +27,7 @@ def _get_version_detail(idx):
if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'): if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'):
version_details = '@PADDLE_VERSION@'.split('.') version_details = '@PADDLE_VERSION@'.split('.')
if len(version_details) == 3 or len(version_details) == 4: if len(version_details) >= 3:
return version_details[idx] return version_details[idx]
return 0 return 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册