summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-14 10:46:35 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-14 10:46:35 (GMT)
commit8a34596bbecdd5ad3dfd15df6fd4efa658e82765 (patch)
tree4d76386a9ce7c6522f7039e217f26cfd6f934d2d /Lib/smtplib.py
parent96d6a78ce03e3642e83fe80cad3ef549cf8717ed (diff)
downloadcpython-8a34596bbecdd5ad3dfd15df6fd4efa658e82765.zip
cpython-8a34596bbecdd5ad3dfd15df6fd4efa658e82765.tar.gz
cpython-8a34596bbecdd5ad3dfd15df6fd4efa658e82765.tar.bz2
#2118: IOError is deprecated, use OSError.
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 a5a9fd4..cc46e4f 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(IOError):
+class SMTPException(OSError):
"""Base class for all exceptions raised by this module."""
class SMTPServerDisconnected(SMTPException):