Skip to content

Commit 9620f50

Browse files
committed
Polish code
test=release/1.0.0
1 parent 68e58ff commit 9620f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/setup.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _get_version_detail(idx):
2727
if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'):
2828
version_details = '@PADDLE_VERSION@'.split('.')
2929

30-
if len(version_details) == 3 or len(version_details) == 4:
30+
if len(version_details) >= 3:
3131
return version_details[idx]
3232

3333
return 0

0 commit comments

Comments
 (0)