From 9d57e53e4e2e359aa188850872566768a8c58075 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 6 Oct 2006 13:18:26 +0000 Subject: [PATCH] [Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport. --- Lib/distutils/command/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/command/register.py b/Lib/distutils/command/register.py index dec9aa2bf21..5fcc8d27647 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")