diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-04-13 14:49:48 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-04-13 14:49:48 -0400 |
commit | 8e37d5df95535081426f5e7fe450695f6dcfe676 (patch) | |
tree | 639ab44183299e0c6a0c9353f65be8e3b797f83d /Lib/smtplib.py | |
parent | Merge #2118: clarify smtplib exception documentation. (diff) | |
download | cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.gz cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.bz2 cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.zip |
#2118: Make SMTPException a subclass of IOError.
Initial patch by Ned Jackson Lovely.
Diffstat (limited to 'Lib/smtplib.py')
-rw-r--r-- | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 50a087c19b1..a5a9fd4c8de 100644 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -66,7 +66,7 @@ bCRLF = b"\r\n" OLDSTYLE_AUTH = re.compile(r"auth=(.*)", re.I) # Exception classes used by this module. -class SMTPException(Exception): +class SMTPException(IOError): """Base class for all exceptions raised by this module.""" class SMTPServerDisconnected(SMTPException): |