Mailing List Archive

cpython: Include micro version even if it is 0.
http://hg.python.org/cpython/rev/a8ac318da01b
changeset: 76702:a8ac318da01b
user: Martin v. Löwis <martin@v.loewis.de>
date: Tue May 01 16:31:18 2012 +0200
summary:
Include micro version even if it is 0.

files:
Lib/idlelib/EditorWindow.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -28,8 +28,7 @@
"Format sys.version_info to produce the Sphinx version string used to install the chm docs"
major, minor, micro, level, serial = sys.version_info
release = '%s%s' % (major, minor)
- if micro:
- release += '%s' % (micro,)
+ release += '%s' % (micro,)
if level == 'candidate':
release += 'rc%s' % (serial,)
elif level != 'final':

--
Repository URL: http://hg.python.org/cpython
cpython: Include micro version even if it is 0. [ In reply to ]
http://hg.python.org/cpython/rev/5ba6124da155
changeset: 76701:5ba6124da155
parent: 76691:0d8cbfe8d88b
user: Martin v. Löwis <martin@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
cpython: Include micro version even if it is 0. [ In reply to ]
http://hg.python.org/cpython/rev/8513a7fbd301
changeset: 76703:8513a7fbd301
user: Martin v. Löwis <martin@v.loewis.de>
date: Tue May 01 16:37:44 2012 +0200
summary:
Include micro version even if it is 0.

files:
Tools/msi/msi.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -122,9 +122,7 @@
} [major+minor]

# Compute the name that Sphinx gives to the docfile
-docfile = ""
-if int(micro):
- docfile = micro
+docfile = micro
if level < 0xf:
if level == 0xC:
docfile += "rc%s" % (serial,)

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