Message180197
| 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:21 | jeffknupp | set | recipients:
+ jeffknupp, eric.smith, chris.jerdonek |
| 2013年01月18日 15:51:21 | jeffknupp | set | messageid: <1358524281.51.0.106498842895.issue16977@psf.upfronthosting.co.za> |
| 2013年01月18日 15:51:21 | jeffknupp | link | issue16977 messages |
| 2013年01月18日 15:51:21 | jeffknupp | create |
|