diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-10-06 13:18:26 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-10-06 13:18:26 (GMT) |
commit | 9d57e53e4e2e359aa188850872566768a8c58075 (patch) | |
tree | 3f82c064e94e254ae57795f3a1533b15afca4713 | |
parent | 0750b1f220fb6e87ad507434a31e9c379413fc92 (diff) | |
download | cpython-9d57e53e4e2e359aa188850872566768a8c58075.zip cpython-9d57e53e4e2e359aa188850872566768a8c58075.tar.gz cpython-9d57e53e4e2e359aa188850872566768a8c58075.tar.bz2 |
[Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport.
-rw-r--r-- | Lib/distutils/command/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/register.py b/Lib/distutils/command/register.py index dec9aa2..5fcc8d2 100644 --- a/Lib/distutils/command/register.py +++ b/Lib/distutils/command/register.py @@ -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") |