[Python-checkins] r52244 - in python/branches/release24-maint: Lib/distutils/command/register.py Misc/NEWS

andrew.kuchling python-checkins at python.org
Mon Oct 9 19:15:39 CEST 2006


Author: andrew.kuchling
Date: Mon Oct  9 19:15:39 2006
New Revision: 52244

Modified:
   python/branches/release24-maint/Lib/distutils/command/register.py
   python/branches/release24-maint/Misc/NEWS
Log:
[Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.

Modified: python/branches/release24-maint/Lib/distutils/command/register.py
==============================================================================
--- python/branches/release24-maint/Lib/distutils/command/register.py	(original)
+++ python/branches/release24-maint/Lib/distutils/command/register.py	Mon Oct  9 19:15:39 2006
@@ -245,7 +245,7 @@
         body = StringIO.StringIO()
         for key, value in data.items():
             # handle multiple entries for the same name
-            if type(value) != type([]):
+            if type(value) not in (type([]), type( () )):
                 value = [value]
             for value in value:
                 value = unicode(value).encode("utf-8")

Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Mon Oct  9 19:15:39 2006
@@ -140,6 +140,9 @@
 Library
 -------
 
+- Bug #1545341: The 'classifier' keyword argument to the Distutils setup() 
+  function now accepts tuples as well as lists.
+
 - Bug #1560617: in pyclbr, return full module name not only for classes,
   but also for functions.
 


More information about the Python-checkins mailing list