diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-13 15:42:23 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-13 15:42:23 (GMT) |
commit | fb23463139a173062031df9c258ac772b56ae08d (patch) | |
tree | 379f81fd99f30a8e2454bd8002876bcc6f1a94da /Lib/idlelib | |
parent | 248886a0cdf287d83861c2b692689ccb38159698 (diff) | |
download | cpython-fb23463139a173062031df9c258ac772b56ae08d.zip cpython-fb23463139a173062031df9c258ac772b56ae08d.tar.gz cpython-fb23463139a173062031df9c258ac772b56ae08d.tar.bz2 |
special case release candidates
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index da051ed..7f5b3ad 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -27,8 +27,10 @@ def _sphinx_version(): major, minor, micro, level, serial = sys.version_info release = '%s%s' % (major, minor) if micro: - release += '%s' % micro - if level != 'final': + release += '%s' % (micro,) + if level == 'candidate': + release += 'rc%s' % (serial,) + elif level != 'final': release += '%s%s' % (level[0], serial) return release |