]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:15:39 +0000 (17:15 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Oct 2006 17:15:39 +0000 (17:15 +0000)
Lib/distutils/command/register.py
Misc/NEWS

index 135c215b0e696ff37059f461276ccfa746e6ea31..0f65c93d746dc9664206c5826c493fd6b4ff9ab3 100644 (file)
@@ -245,7 +245,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 005e38671392817360e7ab7089fec1d93b2011fb..34699b8e3b31d803305299de4dd7ba8494039383 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -140,6 +140,9 @@ Extension Modules
 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.