提交 add2e1b7 编写于 作者: M minqiyang

Merge variable name to detail

上级 b658d205
...@@ -25,8 +25,9 @@ def _get_version_detail(idx): ...@@ -25,8 +25,9 @@ def _get_version_detail(idx):
version_details = '@PADDLE_VERSION@'.split('.') version_details = '@PADDLE_VERSION@'.split('.')
if len(version_details) == 3: if len(version_details) == 3:
if re.match('[0-9]+', version_details[idx]): detail = version_details[idx]
return int(version_details[idx]) if re.match('[0-9]+', detail):
return int(detail)
return None return None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册