[Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list.

This commit is contained in:
Andrew M. Kuchling 2006-10-09 17:13:26 +00:00
parent e1c6278c06
commit 0037300f15
2 changed files with 4 additions and 1 deletions

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

View File

@ -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.