aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
commit0832af6628ca5ac02d0226899725297dd508470b (patch)
treefc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/poplib.py
parentIssue #16706: get rid of os.error (diff)
downloadcpython-0832af6628ca5ac02d0226899725297dd508470b.tar.gz
cpython-0832af6628ca5ac02d0226899725297dd508470b.tar.bz2
cpython-0832af6628ca5ac02d0226899725297dd508470b.zip
Issue #16717: get rid of socket.error, replace with OSError
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r--Lib/poplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index cbd1df9fc99..0f12ae2f2ef 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -272,7 +272,7 @@ class POP3:
if self.sock is not None:
try:
self.sock.shutdown(socket.SHUT_RDWR)
- except socket.error as e:
+ except OSError as e:
# The server might already have closed the connection
if e.errno != errno.ENOTCONN:
raise