summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-13 18:49:48 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-13 18:49:48 (GMT)
commit8e37d5df95535081426f5e7fe450695f6dcfe676 (patch)
tree639ab44183299e0c6a0c9353f65be8e3b797f83d /Lib/smtplib.py
parentc1d3daf58b8df00e680e91f0e568270ea8e85adb (diff)
downloadcpython-8e37d5df95535081426f5e7fe450695f6dcfe676.zip
cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.gz
cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.bz2
#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 50a087c..a5a9fd4 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):