[issue11782] email.generator.Generator.flatten() fails

2011-04-13 Thread R. David Murray
R. David Murray added the comment: I applied this as part of #11684. Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___

[issue11782] email.generator.Generator.flatten() fails

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: So here is a patch which steps forward the not-yet-fully-completed transition to the mixed bytes/str EMail stuff. Test coverage is available if you patch in http://bugs.python.org/file21549/11684.1.diff from #11684. (Because i leak the great picture o

[issue11782] email.generator.Generator.flatten() fails

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, Apr 09, 2011 at 11:56:16AM +, Steffen Daode Nurpmeso wrote: > I'll try to instrument the path a bit .. Sorry, no time today. All the stuff next week. Nice weekend. -- ___ Python tracker

[issue11782] email.generator.Generator.flatten() fails

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Apr 08, 2011 at 11:39:36PM +, Terry J. Reedy wrote: > 1. What is a minimal msgdata that gives the same error; post it. Stepping a bit.. Remove 'Content-Type' header field and this does not crash. Thus the real problem may again lie in get

[issue11782] email.generator.Generator.flatten() fails

2011-04-08 Thread R. David Murray
R. David Murray added the comment: Terry, the test is in the other issue, so this time Steffen has provided the test :). I'll take a look at both issues, probably next week. -- ___ Python tracker ___

[issue11782] email.generator.Generator.flatten() fails

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The error message suggests that somehow a str string has gotten mixed in with the bytes. Something like '\n' or ' '? Steffen, if you want to help track this down: 1. What is a minimal msgdata that gives the same error; post it. 2. Add 'print(payload)' before l

[issue11782] email.generator.Generator.flatten() fails

2011-04-06 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11782] email.generator.Generator.flatten() fails

2011-04-06 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : This snippet (for #11684, but it's simply BytesParser with headersonly=True in the end) with openfile('msg_46.txt', 'rb') as fp: msgdata = fp.read() parser = email.parser.BytesHeaderParser() msg = parser.parsebytes