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 r.david.murray
Recipients barry, gvanrossum, r.david.murray
Date 2009-08-14.03:51:10
SpamBayes Score 0.000632462
Marked as misclassified No
Message-id <1250221872.62.0.801034785231.issue6681@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like it is a regular expression issue.  The code is trying to
delete the last linend before the boundary, which belongs to the
boundary according to the RFC, but it does so with the following RE:

    (\r\n|\r|\n)$

This RE matches '\r\n' in '\r\n\n', which is what Guido's message had. 
The code then deletes the number of characters equal to the length of
the match.  So yes, it is a mixed line ending problem.
History
Date User Action Args
2009-08-14 03:51:12r.david.murraysetrecipients: + r.david.murray, gvanrossum, barry
2009-08-14 03:51:12r.david.murraysetmessageid: <1250221872.62.0.801034785231.issue6681@psf.upfronthosting.co.za>
2009-08-14 03:51:11r.david.murraylinkissue6681 messages
2009-08-14 03:51:10r.david.murraycreate