[issue15249] email.generator.BytesGenerator doesn't mangle "From " lines when non-ASCII bytes are present

2012-08-23 Thread LittleQ
LittleQ added the comment: Sorry, forgot removing the debugging __init__ method. the attachment is the patch without the __init__ changes. -- Added file: http://bugs.python.org/file26974/issue15249_fixed.patch ___ Python tracker <h

[issue15249] email.generator.BytesGenerator doesn't mangle "From " lines when non-ASCII bytes are present

2012-08-23 Thread LittleQ
LittleQ added the comment: when ByteGenerator entered _has_surrogates() will write the payload directly by not-enter into the super class Generator, which has the replace action. my solution is just do it also in BytesGenerator. -- nosy: +littleq0903 Added file: http://bugs.python.org