This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jeffknupp
Recipients chris.jerdonek, eric.smith, jeffknupp
Date 2013-01-18.15:51:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Attached a patch. Rather than altering choices or making a special check for string instances, I just changed the if statement to

if action.choices is not None and value not in list(action.choices):


if action.choices is not None and value not in action.choices:

It has the added benefit of handling all sequence types correctly (rather than just strings). I tried to think of a case where this wouldn't work as expected, but wasn't able to.
Date User Action Args
2013-01-18 15:51:21jeffknuppsetrecipients: + jeffknupp, eric.smith, chris.jerdonek
2013-01-18 15:51:21jeffknuppsetmessageid: <>
2013-01-18 15:51:21jeffknupplinkissue16977 messages
2013-01-18 15:51:21jeffknuppcreate