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 vajrasky
Recipients fredstober, r.david.murray, vajrasky
Date 2014-01-06.07:24:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388993065.34.0.144751738271.issue20121@psf.upfronthosting.co.za>
In-reply-to
Content
The quopri_codec uses binascii.b2a_qp method.

>>> binascii.b2a_qp('\r\n\n\n\n')
'\r\n\r\n\r\n\r\n'

The logic in b2a_qp when dealing with newlines is check whether the first line uses \r\n or \n.

If it uses \r\n, then all remaning lines' new lines will be converted to \r\n. if it uses \n, then all remaning lines' new lines will be converted to \n.

It has comment on the source code.

    /* See if this string is using CRLF line ends */
    /* XXX: this function has the side effect of converting all of
     * the end of lines to be the same depending on this detection
     * here */

I am not sure what the appropriate action here. But doc fix should be acceptable.
History
Date User Action Args
2014-01-06 07:24:25vajraskysetrecipients: + vajrasky, r.david.murray, fredstober
2014-01-06 07:24:25vajraskysetmessageid: <1388993065.34.0.144751738271.issue20121@psf.upfronthosting.co.za>
2014-01-06 07:24:25vajraskylinkissue20121 messages
2014-01-06 07:24:24vajraskycreate