]> granicus.if.org Git - python/commit
Patch by Per Cederqvist, who writes:
authorGuido van Rossum <guido@python.org>
Mon, 29 Mar 1999 20:33:21 +0000 (20:33 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Mar 1999 20:33:21 +0000 (20:33 +0000)
commitf123f84f66bded5a5554f7130cf823d53d3304cd
treefa6b7707fc3420d7515837de4f5685471ca61b66
parent9065ea36deb5812654c1959413a92cfb18ad3b5a
Patch by Per Cederqvist, who writes:

"""
 - 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.
Lib/smtplib.py