mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Remove unnecessary while in SocketIO.readinto (GH-111057)
It is unnecessary after removing "continue" in 6e6c59b
(bpo-42357).
This commit is contained in:
parent
c9aef19cbf
commit
677d4bc15e
1 changed files with 9 additions and 10 deletions
|
@ -702,7 +702,6 @@ class SocketIO(io.RawIOBase):
|
|||
self._checkReadable()
|
||||
if self._timeout_occurred:
|
||||
raise OSError("cannot read from timed out object")
|
||||
while True:
|
||||
try:
|
||||
return self._sock.recv_into(b)
|
||||
except timeout:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue