From: Andrew M. Kuchling Date: Fri, 6 Oct 2006 13:18:26 +0000 (+0000) Subject: [Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will... X-Git-Tag: v2.6a1~2596 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d57e53e4e2e359aa188850872566768a8c58075;p=python [Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport. --- diff --git a/Lib/distutils/command/register.py b/Lib/distutils/command/register.py index dec9aa2bf2..5fcc8d2764 100644 --- a/Lib/distutils/command/register.py +++ b/Lib/distutils/command/register.py @@ -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")