提交 9ea8b7ba 编写于 作者: M minqiyang

Change the default return value of version from 0 to UNKNOWN

上级 078da5de
......@@ -33,21 +33,21 @@ def get_major():
if major is not None:
return major
return 0
return 'UNKNOWN'
def get_minor():
minor = _get_version_detail(1)
if minor is not None:
return minor
return 0
return 'UNKNOWN'
def get_patch():
patch = _get_version_detail(2)
if patch is not None:
return patch
return 0
return 'UNKNOWN'
def is_taged():
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册