From: Andrew M. Kuchling Date: Mon, 9 Oct 2006 17:13:26 +0000 (+0000) Subject: [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list. X-Git-Tag: v2.5.1c1~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0037300f153cb0a84238c5fbe2eafde3102001b6;p=python [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list. --- 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") diff --git a/Misc/NEWS b/Misc/NEWS index daa0add900..485c5f029b 100644 --- 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.