• 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
..
test Loading commit data...
Charset.py Loading commit data...
Encoders.py Loading commit data...
Errors.py Loading commit data...
Generator.py Loading commit data...
Header.py Loading commit data...
Iterators.py Loading commit data...
MIMEAudio.py Loading commit data...
MIMEBase.py Loading commit data...
MIMEImage.py Loading commit data...
MIMEMessage.py Loading commit data...
MIMEMultipart.py Loading commit data...
MIMENonMultipart.py Loading commit data...
MIMEText.py Loading commit data...
Message.py Loading commit data...
Parser.py Loading commit data...
Utils.py Loading commit data...
__init__.py Loading commit data...
_compat21.py Loading commit data...
_compat22.py Loading commit data...
_parseaddr.py Loading commit data...
base64MIME.py Loading commit data...
quopriMIME.py Loading commit data...