From: Andrew M. Kuchling Date: Mon, 9 Oct 2006 17:15:39 +0000 (+0000) Subject: [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list. X-Git-Tag: v2.4.4c1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3d88cf9ad61d6f066aa3b5a155a68ce4ca1bb6;p=thirdparty%2FPython%2Fcpython.git [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 135c215b0e69..0f65c93d746d 100644 --- a/Lib/distutils/command/register.py +++ b/Lib/distutils/command/register.py @@ -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") diff --git a/Misc/NEWS b/Misc/NEWS index 005e38671392..34699b8e3b31 100644 --- 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.