aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-13 14:49:48 -0400
committerR David Murray <rdmurray@bitdance.com>2013-04-13 14:49:48 -0400
commit8e37d5df95535081426f5e7fe450695f6dcfe676 (patch)
tree639ab44183299e0c6a0c9353f65be8e3b797f83d /Lib/smtplib.py
parentMerge #2118: clarify smtplib exception documentation. (diff)
downloadcpython-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.py2
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):