From fd3940b6c8f450a2ce2953b8fa0e876027da13f9 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Fri, 29 Jun 2018 14:36:29 +0800 Subject: [PATCH] Change the sequence of major and minor --- python/setup.py.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/setup.py.in b/python/setup.py.in index a27eb5d58..333c24f34 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -27,20 +27,20 @@ def _get_version_detail(idx): return None -def get_minor(): - minor = _get_version_detail(0) - if minor is not None: - return minor - - return MINOR - def get_major(): - major = _get_version_detail(1) + major = _get_version_detail(0) if major is not None: return major return MAJOR +def get_minor(): + minor = _get_version_detail(1) + if minor is not None: + return minor + + return MINOR + def get_patch(): patch = _get_version_detail(2) if patch is not None: -- GitLab