mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue