[Python-checkins] cpython: Include micro version even if it is 0.

martin.v.loewis python-checkins at python.org
Tue May 1 18:15:59 CEST 2012


http://hg.python.org/cpython/rev/5ba6124da155
changeset:   76701:5ba6124da155
parent:      76691:0d8cbfe8d88b
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Tue May 01 16:27:55 2012 +0200
summary:
  Include micro version even if it is 0.

files:
  Doc/tools/sphinxext/patchlevel.py |  6 ++----
  1 files changed, 2 insertions(+), 4 deletions(-)


diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py
--- a/Doc/tools/sphinxext/patchlevel.py
+++ b/Doc/tools/sphinxext/patchlevel.py
@@ -34,8 +34,7 @@
 
     release = version = '%s.%s' % (d['PY_MAJOR_VERSION'], d['PY_MINOR_VERSION'])
     micro = int(d['PY_MICRO_VERSION'])
-    if micro != 0:
-        release += '.' + str(micro)
+    release += '.' + str(micro)
 
     level = d['PY_RELEASE_LEVEL']
     suffixes = {
@@ -51,8 +50,7 @@
 def get_sys_version_info():
     major, minor, micro, level, serial = sys.version_info
     release = version = '%s.%s' % (major, minor)
-    if micro:
-        release += '.%s' % micro
+    release += '.%s' % micro
     if level != 'final':
         release += '%s%s' % (level[0], serial)
     return version, release

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list