• Guido van Rossum's avatar
    Patch by Per Cederqvist, who writes: · f9a45e06
    Guido van Rossum authored
    """
     - It needlessly used the makefile() method for each response that is
       read from the SMTP server.
    
     - If the remote SMTP server closes the connection unexpectedly the
       code raised an IndexError.  It now raises an SMTPServerDisconnected
       exception instead.
    
     - The code now checks that all lines in a multiline response actually
       contains an error code.
    """
    
    The Dragon approves.
    f9a45e06
smtplib.py 15.2 KB