]> granicus.if.org Git - python/commitdiff
[Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will...
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 6 Oct 2006 13:18:26 +0000 (13:18 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 6 Oct 2006 13:18:26 +0000 (13:18 +0000)
Lib/distutils/command/register.py

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")