[issue20121] quopri_codec newline handling
Marc-Andre Lemburg
report at bugs.python.org
Wed Dec 17 13:26:48 CET 2014
Marc-Andre Lemburg added the comment:
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'
----------
nosy: +lemburg
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20121>
_______________________________________
More information about the Python-bugs-list
mailing list