mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Issue #16717: get rid of socket.error, replace with OSError
This commit is contained in:
parent
ad28c7f9da
commit
0832af6628
39 changed files with 169 additions and 167 deletions
|
|
@ -114,7 +114,7 @@ class async_chat (asyncore.dispatcher):
|
|||
|
||||
try:
|
||||
data = self.recv (self.ac_in_buffer_size)
|
||||
except socket.error as why:
|
||||
except OSError as why:
|
||||
self.handle_error()
|
||||
return
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class async_chat (asyncore.dispatcher):
|
|||
# send the data
|
||||
try:
|
||||
num_sent = self.send(data)
|
||||
except socket.error:
|
||||
except OSError:
|
||||
self.handle_error()
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue