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 <1358524281.51.0.106498842895.issue16977@psf.upfronthosting.co.za>
In-reply-to
Content
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):

from 

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.
History
Date User Action Args
2013-01-18 15:51:21jeffknuppsetrecipients: + jeffknupp, eric.smith, chris.jerdonek
2013-01-18 15:51:21jeffknuppsetmessageid: <1358524281.51.0.106498842895.issue16977@psf.upfronthosting.co.za>
2013-01-18 15:51:21jeffknupplinkissue16977 messages
2013-01-18 15:51:21jeffknuppcreate