• Barry Warsaw's avatar
    parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527, · da2525ed
    Barry Warsaw yazdı
    where in lax parsing, the first non-header line after a header block
    (e.g. the first line not containing a colon, and not a continuation),
    can be treated as the first body line, even without the RFC mandated
    blank line separator.
    
    rfc822 had this behavior, and I vaguely remember problems with this,
    but can't remember details.  In any event, all the tests still pass,
    so I guess we'll find out. ;/
    
    This patch works by returning the non-header, non-continuation line
    from _parseheader() and using that as the first header line prepended
    to fp.read() if given.  It's usually None.
    
    We use this approach instead of trying to seek/tell the file-like
    object.
    da2525ed
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...