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 martin.panter
Recipients BreamoreBoy, aleperalta, barry, brett.cannon, docs@python, jcea, martin.panter, r.david.murray
Date 2015-01-19.05:46:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421646396.55.0.543979122118.issue16473@psf.upfronthosting.co.za>
In-reply-to
Content
Three slightly different points here:

1. Decoding trailing whitespace: My understanding is quoted-printable encoding aims to be tolerant of whitespace being added to and removed from the end of encoded lines. So I assume the “binascii” module is wrong to leave trailing whitespace in the decoded output, and the native “quopri” implementation is correct to ignore it.

2. CRLF handling: See Issue 20121. It seems CRLF newlines should be valid, and I have added a patch to that issue to make the native Python implementation handle CRLF newlines.

3. Whitespace encoding: The quopri-codec actually sets quotetabs=True. Here is a patch to document and test that, as well as correct the functions used by other codecs.
History
Date User Action Args
2015-01-19 05:46:36martin.pantersetrecipients: + martin.panter, barry, brett.cannon, jcea, r.david.murray, docs@python, BreamoreBoy, aleperalta
2015-01-19 05:46:36martin.pantersetmessageid: <1421646396.55.0.543979122118.issue16473@psf.upfronthosting.co.za>
2015-01-19 05:46:36martin.panterlinkissue16473 messages
2015-01-19 05:46:36martin.pantercreate