mirror of https://github.com/python/cpython
[Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport.
This commit is contained in:
parent
0750b1f220
commit
9d57e53e4e
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue