[Python-checkins] r73510 - in python/branches/py3k: Doc/tools/sphinxext/patchlevel.py Lib/idlelib/EditorWindow.py Tools/msi/msi.py

benjamin.peterson python-checkins at python.org
Mon Jun 22 21:36:32 CEST 2009


Author: benjamin.peterson
Date: Mon Jun 22 21:36:31 2009
New Revision: 73510

Log:
Merged revisions 73415,73417-73418 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73415 | benjamin.peterson | 2009-06-13 09:25:08 -0500 (Sat, 13 Jun 2009) | 1 line
  
  use 'rc' for release candidates for consistency
........
  r73417 | benjamin.peterson | 2009-06-13 10:42:23 -0500 (Sat, 13 Jun 2009) | 1 line
  
  special case release candidates
........
  r73418 | benjamin.peterson | 2009-06-13 10:48:04 -0500 (Sat, 13 Jun 2009) | 1 line
  
  handle different rc format
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
   python/branches/py3k/Lib/idlelib/EditorWindow.py
   python/branches/py3k/Tools/msi/msi.py

Modified: python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
==============================================================================
--- python/branches/py3k/Doc/tools/sphinxext/patchlevel.py	(original)
+++ python/branches/py3k/Doc/tools/sphinxext/patchlevel.py	Mon Jun 22 21:36:31 2009
@@ -41,7 +41,7 @@
     suffixes = {
         'PY_RELEASE_LEVEL_ALPHA': 'a',
         'PY_RELEASE_LEVEL_BETA':  'b',
-        'PY_RELEASE_LEVEL_GAMMA': 'c',
+        'PY_RELEASE_LEVEL_GAMMA': 'rc',
         }
     if level != 'PY_RELEASE_LEVEL_FINAL':
         release += suffixes[level] + str(int(d['PY_RELEASE_SERIAL']))

Modified: python/branches/py3k/Lib/idlelib/EditorWindow.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/EditorWindow.py	(original)
+++ python/branches/py3k/Lib/idlelib/EditorWindow.py	Mon Jun 22 21:36:31 2009
@@ -29,8 +29,10 @@
     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
 

Modified: python/branches/py3k/Tools/msi/msi.py
==============================================================================
--- python/branches/py3k/Tools/msi/msi.py	(original)
+++ python/branches/py3k/Tools/msi/msi.py	Mon Jun 22 21:36:31 2009
@@ -120,7 +120,10 @@
 if micro:
     docfile = str(micro)
 if level < 0xf:
-    docfile = '%x%s' % (level, serial)
+    if level == 0xC:
+        docfile = "rc%s" % (serial,)
+    else:
+        docfile = '%x%s' % (level, serial)
 docfile = 'python%s%s%s.chm' % (major, minor, docfile)
 
 # Build the mingw import library, libpythonXY.a


More information about the Python-checkins mailing list