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

andrew.kuchling python-checkins at python.org
Mon Oct 9 19:13:27 CEST 2006


Author: andrew.kuchling
Date: Mon Oct  9 19:13:26 2006
New Revision: 52243

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

Modified: python/branches/release25-maint/Lib/distutils/command/register.py
==============================================================================
--- python/branches/release25-maint/Lib/distutils/command/register.py	(original)
+++ python/branches/release25-maint/Lib/distutils/command/register.py	Mon Oct  9 19:13:26 2006
@@ -251,7 +251,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/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS	(original)
+++ python/branches/release25-maint/Misc/NEWS	Mon Oct  9 19:13:26 2006
@@ -65,6 +65,9 @@
 - Bug #1446043: correctly raise a LookupError if an encoding name given
   to encodings.search_function() contains a dot.
 
+- 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