mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix for line wrap ugly.
This commit is contained in:
parent
a810bc736c
commit
96b79c851a
1 changed files with 1 additions and 2 deletions
|
@ -106,8 +106,7 @@ def readwrite(obj, flags):
|
|||
if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
|
||||
obj.handle_close()
|
||||
except socket.error, e:
|
||||
if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN,
|
||||
ECONNABORTED):
|
||||
if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED):
|
||||
obj.handle_error()
|
||||
else:
|
||||
obj.handle_close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue