Message117857
| Author |
r.david.murray |
| Recipients |
Alex Quinn, barry, dato, meatballhat, pitrou, r.david.murray, tercero12, vstinner |
| Date |
2010年10月02日.02:37:29 |
| SpamBayes Score |
0.0029400536 |
| Marked as misclassified |
No |
| Message-id |
<1285987051.38.0.71481025789.issue4661@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In case it isn't clear, the code patch is now complete, so anyone who wants to give it a review, please do. I'll add the docs soon, but the basic idea is you can put bytes in by either using message_from_bytes or by using the 'ascii' codec and the 'surrogateescape' error handler on a file passed to msg_from_file, and you can get bytes out by using BytesGenerator and passing it a file-like object that accepts bytes. As a side benefit, Generator will correctly render (as unicode) the content of a section with a ContentTransferEncoding of '8bit'. |
|