mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Issue #24245: Eliminated senseless expect clauses that have no any effect in
IDLE. Patch by Martin Panter.
This commit is contained in:
parent
5d6b7b1cb7
commit
ef94869f4f
2 changed files with 12 additions and 19 deletions
|
@ -340,10 +340,7 @@ class SocketIO(object):
|
|||
n = self.sock.send(s[:BUFSIZE])
|
||||
except (AttributeError, TypeError):
|
||||
raise OSError("socket no longer exists")
|
||||
except OSError:
|
||||
raise
|
||||
else:
|
||||
s = s[n:]
|
||||
s = s[n:]
|
||||
|
||||
buff = b''
|
||||
bufneed = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue