]> granicus.if.org Git - python/commitdiff
[Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Oct 2006 17:13:26 +0000 (17:13 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Oct 2006 17:13:26 +0000 (17:13 +0000)
Lib/distutils/command/register.py
Misc/NEWS

index dec9aa2bf21c2436b21a8145598b0e1010c5e0c0..5fcc8d27647167102c29650ab0d062416bd2f490 100644 (file)
@@ -251,7 +251,7 @@ Your selection [default 1]: ''',
         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")
index daa0add90049ab173da30681d39c1c9bfe43fe00..485c5f029b3a89f8cb91334aff396a997f36e4b1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -65,6 +65,9 @@ Library
 - 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.