• Barry Warsaw's avatar
    Merge of the folding-reimpl-branch. Specific changes, · e899e51c
    Barry Warsaw yazdı
    _split(): New implementation of ASCII line splitting which should do a
    better job and not be subject to the various weird artifacts (bugs)
    reported.  This should also do a better job of higher-level syntactic
    splits by trying first to split on semis, then commas, then
    whitespace.
    
    Use a Timbot-ly binary search for optimal non-ASCII split points for
    better packing of header lines.  This also lets us remove one
    recursion call.  Don't pass in firstline, but instead pass in the
    actual line length we're shooting for.  Also pass in the list of split
    characters.
    
    encode(): Pass in the list of split characters so applications can
    have some control over what "higher level syntactic breaks" are.
    
    Also,
    
    decode_header(): Transform binascii.Errors which can occur when
    decoding a base64 RFC 2047 header with bogus data, into an
    email.Errors.HeaderParseError.  Closes SF bug #696712.
    e899e51c
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...