[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/file26973/issue15249.patch

___
Python tracker 
<http://bugs.python.org/issue15249>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<http://bugs.python.org/issue15249>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com