Message232814
| Author |
lemburg |
| Recipients |
fredstober, lemburg, martin.panter, r.david.murray, vajrasky |
| Date |
2014年12月17日.12:26:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1418819208.25.0.160487673278.issue20121@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I agree with Vajrasky: a patch for the documentation would probably be a good idea.
Note that mixing line end conventions in a single text is never a good idea. If you stick to one line end convention, there's no problem with the codec, AFAICT.
>>> codecs.encode(b'\r\n\r\n', 'quopri_codec')
b'\r\n\r\n'
>>> codecs.decode(_, 'quopri_codec')
b'\r\n\r\n'
>>> codecs.encode(b'\n\n', 'quopri_codec')
b'\n\n'
>>> codecs.decode(_, 'quopri_codec')
b'\n\n' |
|