[Python-checkins] r52211 - python/trunk/Lib/distutils/command/register.py
andrew.kuchling
python-checkins at python.org
Fri Oct 6 15:18:27 CEST 2006
Author: andrew.kuchling
Date: Fri Oct 6 15:18:26 2006
New Revision: 52211
Modified:
python/trunk/Lib/distutils/command/register.py
Log:
[Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport.
Modified: python/trunk/Lib/distutils/command/register.py
==============================================================================
--- python/trunk/Lib/distutils/command/register.py (original)
+++ python/trunk/Lib/distutils/command/register.py Fri Oct 6 15:18:26 2006
@@ -251,7 +251,7 @@
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")
More information about the Python-checkins
mailing list