mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
This commit is contained in:
parent
50793b4438
commit
ba6c0d3b08
8 changed files with 18 additions and 22 deletions
|
|
@ -339,7 +339,7 @@ class SocketIO(object):
|
|||
r, w, x = select.select([], [self.sock], [])
|
||||
n = self.sock.send(s[:BUFSIZE])
|
||||
except (AttributeError, TypeError):
|
||||
raise IOError("socket no longer exists")
|
||||
raise OSError("socket no longer exists")
|
||||
except socket.error:
|
||||
raise
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue