[Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport.

This commit is contained in:
Andrew M. Kuchling 2006-10-06 13:18:26 +00:00
parent 0750b1f220
commit 9d57e53e4e
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ Your selection [default 1]: ''',
body = StringIO.StringIO() body = StringIO.StringIO()
for key, value in data.items(): for key, value in data.items():
# handle multiple entries for the same name # handle multiple entries for the same name
if type(value) != type([]): if type(value) not in (type([]), type( () )):
value = [value] value = [value]
for value in value: for value in value:
value = unicode(value).encode("utf-8") value = unicode(value).encode("utf-8")